summaryrefslogtreecommitdiffstats
path: root/app/class
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2017-04-14 21:03:58 -0400
committerMalf Furious <m@lfurio.us>2017-04-14 21:03:58 -0400
commit65a0097b7e4206dbd687d6d7d2d0fd29a3e3c799 (patch)
tree20ddd877af5be3e8e4cc1904e2b0c14683ccfcff /app/class
parenta4db163ae8633c3740be2c2582364cb3f5acb9db (diff)
parent453a2fc20886fa25b94017c1cccdbd05456a2d60 (diff)
downloadscrott-65a0097b7e4206dbd687d6d7d2d0fd29a3e3c799.tar.gz
scrott-65a0097b7e4206dbd687d6d7d2d0fd29a3e3c799.zip
Merge branch 'bug/refreshObj' into dev
Diffstat (limited to '')
-rw-r--r--app/class/table.class.php5
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
}
}