From c011fcbb9057a1c4f50f0c674cb670116bd4f256 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 29 Jun 2018 19:59:19 -0600 Subject: [PATCH] Update persist_form_var.php --- resources/persist_form_var.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/resources/persist_form_var.php b/resources/persist_form_var.php index 21ea89fd14..2b96cbbf3d 100644 --- a/resources/persist_form_var.php +++ b/resources/persist_form_var.php @@ -17,26 +17,26 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2018 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ -function persistformvar($formarray) { +function persistformvar($form_array) { // Remember Form Input Values - if(is_array($formarray)) { - $content .= "
\n"; - foreach($formarray as $key => $val) { - if($key == "XID" || $key == "ACT" || $key == "RET") continue; - if ($key != "persistform") { //clears the persistform value - $content .= "\n"; - } - } - $content .= "\n"; //sets persistform to yes - $content .= "\n"; - $content .= "
\n"; + if (is_array($form_array)) { + $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"; //sets persistform to yes + $content .= " \n"; + $content .= "
\n"; } echo $content; //return $content;