diff options
author | Malf Furious <m@lfurio.us> | 2017-04-14 21:03:58 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-04-14 21:03:58 -0400 |
commit | 65a0097b7e4206dbd687d6d7d2d0fd29a3e3c799 (patch) | |
tree | 20ddd877af5be3e8e4cc1904e2b0c14683ccfcff /app | |
parent | a4db163ae8633c3740be2c2582364cb3f5acb9db (diff) | |
parent | 453a2fc20886fa25b94017c1cccdbd05456a2d60 (diff) | |
download | scrott-65a0097b7e4206dbd687d6d7d2d0fd29a3e3c799.tar.gz scrott-65a0097b7e4206dbd687d6d7d2d0fd29a3e3c799.zip |
Merge branch 'bug/refreshObj' into dev
Diffstat (limited to 'app')
-rw-r--r-- | app/class/table.class.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/class/table.class.php b/app/class/table.class.php index c547e43..52a3e7d 100644 --- a/app/class/table.class.php +++ b/app/class/table.class.php @@ -127,10 +127,7 @@ abstract class table foreach ($flds as $fld) { if (!isset($this->$fld)) - { - $this->$fld = ""; continue; - } $fld = database::esc($fld); $fldstr .= $fld . ", "; @@ -145,6 +142,8 @@ abstract class table database::query($query); } } + + $this->refreshObj(); // fetch default, unset values from database } } |