Skip to content

Commit 498a443

Browse files
committed
Derp
Signed-off-by: snipe <[email protected]>
1 parent 34b49ef commit 498a443

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
@@ -36,7 +36,7 @@ public function handle($request, Closure $next)
3636
try {
3737
$total_assets = Asset::count();
3838
if ($settings->show_archived_in_list != '1') {
39-
$total_assets = Asset::Archived()->count();
39+
$total_assets -= Asset::Archived()->count();
4040
}
4141
view()->share('total_assets', $total_assets);
4242
} catch (\Exception $e) {

0 commit comments

Comments
 (0)