diff --git a/ActiveQuery.php b/ActiveQuery.php index f52dc0b1a..ecff9db79 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -116,6 +116,9 @@ public function all($db = null) { // TODO add support for orderBy $data = $this->executeScript($db, 'All'); + if (empty($data)) { + return []; + } $rows = []; foreach ($data as $dataRow) { $row = [];