summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--class/CommonTable.php6
1 files 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 = ',';
}