Explorar o código

added null case to php 7.2 patch

George Appleton %!s(int64=7) %!d(string=hai) anos
pai
achega
1409c15c8e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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