Skip to content

Commit

Permalink
Cast to array, fix #49
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomazer authored Jun 3, 2019
1 parent 76410cc commit 8a6db8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public function compileOffset($offset, $query, $bindings = array(), $me)
$me->getFetchMode()
)[0];

if (count($identity) === 0) {
if (count((array)$identity) === 0) {
$queryString = $this->queryStringForPrimaries($from);
$primaries = $this->getPdo()->query($queryString)->fetchAll(
$me->getFetchMode()
Expand Down

0 comments on commit 8a6db8c

Please sign in to comment.