From 459c95064e3611ff3732bcfcc74264df06479f2d Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 10 Jan 2023 17:54:04 -0800 Subject: [PATCH] Fixed default Signed-off-by: snipe --- app/Models/Category.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Category.php b/app/Models/Category.php index 836f28e8e..b00e5a7bf 100755 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -179,7 +179,8 @@ class Category extends SnipeModel return $this->consumables()->count(); case 'license': return $this->licenses()->count(); - default: 0; + default: + return 0; } }