diff options
Diffstat (limited to '')
-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 } } |