We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a7445b + 7654ce0 commit 98c7234Copy full SHA for 98c7234
src/app/Library/CrudPanel/Traits/Query.php
@@ -246,7 +246,7 @@ private function getCountFromQuery(Builder $query)
246
// so we just store them and re-use them in the sub-query too.
247
$expressionColumns = [];
248
249
- foreach ($crudQuery->columns as $column) {
+ foreach ($crudQuery->columns ?? [] as $column) {
250
if (! is_string($column) && is_a($column, 'Illuminate\Database\Query\Expression')) {
251
$expressionColumns[] = $column;
252
}
0 commit comments