// Fix access table for old mysql configurations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11733 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+2
-2
@@ -250,7 +250,7 @@ abstract class DbCore
|
||||
*
|
||||
* @param string $table Table where insert/update data
|
||||
* @param string $data Data to insert/update
|
||||
* @param string $type INSERT or INSERT IGNORE or UPDATE
|
||||
* @param string $type INSERT or INSERT IGNORE or REPLACE or UPDATE
|
||||
* @param string $where WHERE clause, only for UPDATE (optional)
|
||||
* @param int $limit LIMIT clause (optional)
|
||||
* @param bool $use_cache
|
||||
@@ -263,7 +263,7 @@ abstract class DbCore
|
||||
return true;
|
||||
|
||||
$type = strtoupper($type);
|
||||
if ($type == 'INSERT' || $type == 'INSERT IGNORE')
|
||||
if ($type == 'INSERT' || $type == 'INSERT IGNORE' || $type == 'REPLACE')
|
||||
{
|
||||
// Check if $data is a list of row
|
||||
$current = current($data);
|
||||
|
||||
Reference in New Issue
Block a user