From 34b49ef0797bb604dfe7139014ecf143e54cb536 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 11 Jul 2024 11:59:47 +0100 Subject: [PATCH] Fixed typo Signed-off-by: snipe --- app/Http/Middleware/AssetCountForSidebar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/AssetCountForSidebar.php b/app/Http/Middleware/AssetCountForSidebar.php index 636c04713d..92c8152ef4 100644 --- a/app/Http/Middleware/AssetCountForSidebar.php +++ b/app/Http/Middleware/AssetCountForSidebar.php @@ -36,7 +36,7 @@ class AssetCountForSidebar try { $total_assets = Asset::count(); if ($settings->show_archived_in_list != '1') { - $total_assets -= Asset::Archived()->count(); + $total_assets = Asset::Archived()->count(); } view()->share('total_assets', $total_assets); } catch (\Exception $e) {