From facf1d42f7dfab8dac47495308c2cef286adbed1 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 25 Jan 2018 11:06:37 -0800 Subject: [PATCH] Sigh. --- app/Models/Asset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index e220f4940d..51dd6b8572 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -231,7 +231,7 @@ class Asset extends Depreciable */ public function get_depreciation() { - if ($this->model) { + if (($this->model) && ($this->model->depreciation)) { return $this->model->depreciation; } }