diff --git a/objects/Object.php b/objects/Object.php index 2fe9a61e..dbd60019 100644 --- a/objects/Object.php +++ b/objects/Object.php @@ -149,6 +149,7 @@ public function save() { } elseif (strtolower($value) == 'modified') { $fields[] = " {$value} = now() "; } else { + $this->$value = str_replace("'", '', $this->$value); $fields[] = " `{$value}` = '{$this->$value}' "; } }