Skip to content

Commit 8a6db8c

Browse files
authored
Cast to array, fix #49
1 parent 76410cc commit 8a6db8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Database/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ public function compileOffset($offset, $query, $bindings = array(), $me)
517517
$me->getFetchMode()
518518
)[0];
519519

520-
if (count($identity) === 0) {
520+
if (count((array)$identity) === 0) {
521521
$queryString = $this->queryStringForPrimaries($from);
522522
$primaries = $this->getPdo()->query($queryString)->fetchAll(
523523
$me->getFetchMode()

0 commit comments

Comments
 (0)