|
|
@@ -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
|