From 3381ad189b16827f48a97eec55d6884fc5222bf8 Mon Sep 17 00:00:00 2001 From: stevenA Date: Sat, 1 Jan 2022 16:28:36 +0100 Subject: [PATCH] Update formcreate.class.php Clean up code --- sccpManClasses/formcreate.class.php | 33 ++++++++--------------------- 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/sccpManClasses/formcreate.class.php b/sccpManClasses/formcreate.class.php index 75a6372..9fd6d74 100644 --- a/sccpManClasses/formcreate.class.php +++ b/sccpManClasses/formcreate.class.php @@ -34,7 +34,7 @@ class formcreate if (empty($child->nameseparator)) { $child->nameseparator = ' / '; } - $i = 0; + ?>
@@ -51,6 +51,7 @@ class formcreate } // Can have multiple inputs for a field which are displayed with a separator + $i = 0; foreach ($child->xpath('input') as $value) { $res_n = (string)$value->name; $res_name = $npref . $res_n; @@ -72,7 +73,7 @@ class formcreate } // Output current value if (empty($value->value)) { - echo "Value not found for {$res_n}"; + echo "{$res_n} has not been set"; } echo $value->value; $i ++; @@ -85,21 +86,13 @@ class formcreate > @@ -390,21 +383,13 @@ class formcreate >