浏览代码

added null case to php 7.2 patch

George Appleton 7 年之前
父节点
当前提交
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