A free open source IT asset/license management system
Validates if model and model->category exist before return the checkin_email property
Ivan Nieto Vivancof36de6c670cf
diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 82c6d97120..6ddc597188 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -830,7 +830,9 @@ class Asset extends Depreciable*/public function checkin_email(){- return $this->model->category->checkin_email;+ if (($this->model) && ($this->model->category)) {+ return $this->model->category->checkin_email;+ }}/**