diff --git a/src/Database/Connection.php b/src/Database/Connection.php index e9ca35a..4299891 100644 --- a/src/Database/Connection.php +++ b/src/Database/Connection.php @@ -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()