// check if PS_MODE_DEV is defined before checking its value

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10426 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-11-22 14:32:58 +00:00
parent 4a5f3dc5c9
commit 2ee0842282
+2 -2
View File
@@ -403,7 +403,7 @@ abstract class DbCore
// This methode must be used only with queries which display results
if (!preg_match('#^\s*(select|show|explain)\s#i', $sql))
{
if (_PS_MODE_DEV_)
if (defined('_PS_MODE_DEV_') && _PS_MODE_DEV_)
throw new PrestashopDatabaseException('Db->executeS() must be used only with select, show or explain queries');
return $this->execute($sql, $use_cache);
}
@@ -608,4 +608,4 @@ abstract class DbCore
Db::s($sql, $use_cache);
die();
}
}
}