mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
count(): Parameter must be an array or an object that implements Countable #1767
This commit is contained in:
parent
e8d67b31ca
commit
535246916c
@ -206,7 +206,7 @@ class StartupCheck
|
|||||||
$orderBy = 'id';
|
$orderBy = 'id';
|
||||||
}
|
}
|
||||||
$tableData = $class::orderBy($orderBy)->get();
|
$tableData = $class::orderBy($orderBy)->get();
|
||||||
if (count($tableData)) {
|
if ($tableData->count()) {
|
||||||
Cache::forever($name, $tableData);
|
Cache::forever($name, $tableData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user