summaryrefslogtreecommitdiffstats
path: root/app/model
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-12 15:05:12 -0500
committerMalf Furious <m@lfurio.us>2016-03-27 20:16:32 -0400
commitcc755e3756e43109d0db0de963b3a132039456b1 (patch)
treeac36ae05d78f1ba8319691482bdfe30e218cca1b /app/model
parenta5eb5c0ee075b8d307e63ce936f2bc4b4592ed21 (diff)
downloadscrott-cc755e3756e43109d0db0de963b3a132039456b1.tar.gz
scrott-cc755e3756e43109d0db0de963b3a132039456b1.zip
Alter representation of form boolean values
Changed how Form() objects model true and false for boolean fields. Was "true" and "false", is now "1" and "0", respectivly. This is to address how Mysql handles these values as they are pushed to the db.
Diffstat (limited to 'app/model')
-rw-r--r--app/model/common.mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php
index a0bf6ae..33acb1b 100644
--- a/app/model/common.mod.php
+++ b/app/model/common.mod.php
@@ -79,7 +79,7 @@ class CommonModel extends MasterModel
return;
}
- if ($form->setPasswd == "true")
+ if ($form->setPasswd)
{
if ($user->validatePassword($form->curPasswd))
{