summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-09-13 20:50:14 -0400
committerMalf Furious <m@lfurio.us>2016-09-13 20:50:14 -0400
commit9f287ae8422ec202b56c7897a6795c34d1d28a3b (patch)
tree4fdbd4e94670ad6c5717c0b38f46f43245dd1643 /app
parentde8dc835d7442a8bdc47d181ee9385fe7d16209d (diff)
parent63e56817123810e93a3d5cd0e13a70b8c47cacc5 (diff)
downloadscrott-9f287ae8422ec202b56c7897a6795c34d1d28a3b.tar.gz
scrott-9f287ae8422ec202b56c7897a6795c34d1d28a3b.zip
Merge branch 'support/php7' into feature/core/groups
Diffstat (limited to '')
-rw-r--r--app/class/form.class.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/class/form.class.php b/app/class/form.class.php
index f0d660a..8bb6506 100644
--- a/app/class/form.class.php
+++ b/app/class/form.class.php
@@ -123,10 +123,10 @@ class Form
foreach ($this->textFields as $fld)
{
if (isset($input[$fld['name']]) && $input[$fld['name']] != "")
- $this->$fld['name'] = htmlEntities($input[$fld['name']], ENT_QUOTES);
+ $this->{$fld['name']} = htmlEntities($input[$fld['name']], ENT_QUOTES);
else if (!is_null($fld['deflt']))
- $this->$fld['name'] = $fld['deflt'];
+ $this->{$fld['name']} = $fld['deflt'];
else if ($fld['req'])
$this->logError($fld['name'] . " is required");
@@ -161,11 +161,11 @@ class Form
continue;
}
- $this->$fld['name'] = $input[$fld['name']];
+ $this->{$fld['name']} = $input[$fld['name']];
}
else if (!is_null($fld['deflt']))
- $this->$fld['name'] = $fld['deflt'];
+ $this->{$fld['name']} = $fld['deflt'];
else if ($fld['req'])
$this->logError($fld['name'] . " is required");
@@ -182,11 +182,11 @@ class Form
continue;
}
- $this->$fld['name'] = $input[$fld['name']];
+ $this->{$fld['name']} = $input[$fld['name']];
}
else if (!is_null($fld['deflt']))
- $this->$fld['name'] = $fld['deflt'];
+ $this->{$fld['name']} = $fld['deflt'];
else if ($fld['req'])
$this->logError($fld['name'] . " is required");