From 3f6fa98c008a915e53f251792292e6983ec4fd1e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 3 Dec 2015 19:38:12 +0100 Subject: fix previous --- class/CommonTable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/class/CommonTable.php b/class/CommonTable.php index d8852c7..fcf9e23 100644 --- a/class/CommonTable.php +++ b/class/CommonTable.php @@ -121,7 +121,7 @@ abstract class CommonTable } else if (is_numeric($value)) { $val[] = $value; } else { - $val[] = "'".$this->escape($value)."'"; + $val[] = $this->escape($value); } } $sql = "INSERT INTO `".$this->table."` (".implode(',', $col).") @@ -185,7 +185,7 @@ abstract class CommonTable } else if (is_numeric($value)) { $sql .= '='.$value; } else { - $sql .= "='".$this->escape($value)."'"; + $sql .= "=".$this->escape($value); } $link = "AND"; @@ -220,7 +220,7 @@ abstract class CommonTable } else if (is_numeric($value)) { $sql .= $value; } else { - $sql .= "'".$this->escape($value)."'"; + $sql .= $this->escape($value); } $link = ','; } -- cgit