summaryrefslogtreecommitdiffstats
path: root/app/class
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/class
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/class')
-rw-r--r--app/class/form.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/class/form.class.php b/app/class/form.class.php
index 808de27..9f103ba 100644
--- a/app/class/form.class.php
+++ b/app/class/form.class.php
@@ -82,7 +82,7 @@ class Form
*/
function field_bool($name)
{
- $this->field_enum($name, array("true", "false"), "false");
+ $this->field_enum($name, array("1", "0"), "0");
}
/*