A free open source IT asset/license management system
Handle category missing in Consumable
Marcus Moore4e06b597fee7
diff --git a/app/Models/Consumable.php b/app/Models/Consumable.phpindex c83aa6106e..b881ec65f3 100644--- a/app/Models/Consumable.php+++ b/app/Models/Consumable.php@@ -284,7 +284,7 @@ class Consumable extends SnipeModel*/public function checkin_email(){- return $this->category->checkin_email;+ return $this->category?->checkin_email;}/**