// 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 committed 2011-11-22 14:32:58 +00:00
1 parent 4a5f3dc5c9
commit 2ee0842282
1 file changed
+1 -1
+1 -1
View File
@@ -403,7 +403,7 @@ abstract class DbCore
// This methode must be used only with queries which display results // This methode must be used only with queries which display results
if (!preg_match('#^\s*(select|show|explain)\s#i', $sql)) 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'); throw new PrestashopDatabaseException('Db->executeS() must be used only with select, show or explain queries');
return $this->execute($sql, $use_cache); return $this->execute($sql, $use_cache);
} }