// Fix #PSFV-32
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7787 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
e990ded287
commit
d822f2a373
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user