Просмотр исходного кода

added null case to php 7.2 patch

George Appleton 7 лет назад
Родитель
Сommit
1409c15c8e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      library/Zend/Db/Table/Abstract.php

+ 1 - 1
library/Zend/Db/Table/Abstract.php

@@ -1307,7 +1307,7 @@ abstract class Zend_Db_Table_Abstract
             if (is_array($keyValues) || $keyValues instanceof Countable) {
                 $keyValuesCount = count($keyValues);
             } else {
-                $keyValuesCount = 1;
+                $keyValuesCount = $keyValues == null ? 0 : 1;
             }
             // Coerce the values to an array.
             // Don't simply typecast to array, because the values