// Fix #PSFV-32

This commit is contained in:
rMalie committed 2011-07-28 13:51:29 +00:00
1 parent 76f34bc822
commit 708742042d
1 file changed
+2 -1
+2 -1
View File
@@ -298,7 +298,8 @@ abstract class DbCore
public function delete($table, $where = false, $limit = false, $use_cache = 1) public function delete($table, $where = false, $limit = false, $use_cache = 1)
{ {
$this->_result = false; $this->_result = false;
$res = $this->query('DELETE FROM `'.pSQL($table).'`'.($where ? ' WHERE '.$where : '').($limit ? ' LIMIT '.(int)$limit : '')); $sql = 'DELETE FROM `'.pSQL($table).'`'.($where ? ' WHERE '.$where : '').($limit ? ' LIMIT '.(int)$limit : '');
$res = $this->query($sql);
if ($use_cache AND _PS_CACHE_ENABLED_) if ($use_cache AND _PS_CACHE_ENABLED_)
Cache::getInstance()->deleteQuery($sql); Cache::getInstance()->deleteQuery($sql);
return $res; return $res;