// Db::autoExecute() return a boolean

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10955 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-12-05 17:29:45 +00:00
parent a73e408196
commit 01f0ec6a99
+2 -2
View File
@@ -295,7 +295,7 @@ abstract class DbCore
$sql = $type.' INTO `'.$table.'` ('.$keys_stringified.') VALUES '.implode(', ', $values_stringified);
if ($limit)
$sql .= ' LIMIT '.(int)$limit;
return $this->q($sql, $use_cache);
return (bool)$this->q($sql, $use_cache);
}
else if ($type == 'UPDATE')
{
@@ -315,7 +315,7 @@ abstract class DbCore
$sql .= ' WHERE '.$where;
if ($limit)
$sql .= ' LIMIT '.(int)$limit;
return $this->q($sql, $use_cache);
return (bool)$this->q($sql, $use_cache);
}
else
throw new PrestashopDatabaseException('Wrong argument (miss type) in Db::autoExecute()');