From 3487b8ae53a28ed21eadcbe0857d055bee5da4d8 Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 17 May 2023 07:02:02 +0000 Subject: [PATCH] persistformvar [Function]: Updates for PHP 8.1 --- resources/persist_form_var.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/persist_form_var.php b/resources/persist_form_var.php index d7dcb417bd..52bf0c16b4 100644 --- a/resources/persist_form_var.php +++ b/resources/persist_form_var.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2018 + Portions created by the Initial Developer are Copyright (C) 2008-2023 the Initial Developer. All Rights Reserved. Contributor(s): @@ -28,11 +28,11 @@ function persistformvar($form_array) { // Remember Form Input Values $content = ''; if (!empty($form_array)) { - $content .= "
\n"; - foreach($form_array as $key => $val) { + $content .= "\n"; + foreach ($form_array as $key => $val) { if ($key == "XID" || $key == "ACT" || $key == "RET") continue; if ($key != "persistform") { //clears the persistform value - $content .= " \n"; + $content .= " \n"; } } $content .= " \n"; //sets persistform to yes @@ -45,4 +45,4 @@ function persistformvar($form_array) { //persistformvar($_POST); //persistformvar($_GET); -?> +?> \ No newline at end of file