Skip to content

Commit

Permalink
Update Abstract.php
Browse files Browse the repository at this point in the history
Count issue fix
  • Loading branch information
Shardj authored Jul 23, 2018
1 parent ff438d0 commit 47e5c23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion library/Zend/Db/Table/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,11 @@ public function find()
$whereList = array();
$numberTerms = 0;
foreach ($args as $keyPosition => $keyValues) {
$keyValuesCount = count($keyValues);
if (is_array($keyValues) || $keyValues instanceof Countable) {
$keyValuesCount = count($keyValues);
} else {
$keyValuesCount = 1;
}
// Coerce the values to an array.
// Don't simply typecast to array, because the values
// might be Zend_Db_Expr objects.
Expand Down

0 comments on commit 47e5c23

Please sign in to comment.