diff --git a/objects/Object.php b/objects/Object.php index 0c207b306..18e4dc000 100644 --- a/objects/Object.php +++ b/objects/Object.php @@ -174,7 +174,7 @@ public function save() { $fields[] = " {$id} "; } }else{ - $this->$value = addcslashes($this->$value, "'"); + $this->$value = str_replace("'", '', $this->$value); $fields[] = " '{$this->$value}' "; } }