Skip to content

Commit e1bea88

Browse files
author
Joan He
committed
MAGETWO-89091: CE edition - Update composer dependencies
- fix count() issue
1 parent d901f30 commit e1bea88

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ public function insertArray($table, array $columns, array $data, $strategy = 0)
20132013
$bind = [];
20142014
$columnsCount = count($columns);
20152015
foreach ($data as $row) {
2016-
if ($columnsCount != count($row)) {
2016+
if (is_array($row) && $columnsCount != count($row)) {
20172017
throw new \Zend_Db_Exception('Invalid data for insert');
20182018
}
20192019
$values[] = $this->_prepareInsertData($row, $bind);

0 commit comments

Comments
 (0)