Skip to content

Commit 4642f50

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents c8fbf76 + 2decc3d commit 4642f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/AssetCountForSidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function handle($request, Closure $next)
3535
}
3636

3737
try {
38-
$total_assets = Asset::all()->count();
38+
$total_assets = Asset::count();
3939
if ($settings->show_archived_in_list != '1') {
4040
$total_assets -= Asset::Archived()->count();
4141
}

0 commit comments

Comments
 (0)