Skip to content

Commit

Permalink
fixed PHP warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 10, 2015
1 parent 8f703e7 commit 9e108ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ActiveQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ public function getList($as_array = true, $db = null, $options = [])
}
$result = $models;
}
$result = $result ?: [];

// return $this->createCommand($db)->getList($options);
return $as_array ? ArrayHelper::map($result, 'gl_key', function ($o) { return Re::l($o->gl_value); }) : $result;
Expand Down

0 comments on commit 9e108ab

Please sign in to comment.