This commit is contained in:
snipe 2018-01-25 03:34:52 -08:00
parent cf8feb37e1
commit 4be8ae7f3d

View file

@ -231,7 +231,9 @@ class Asset extends Depreciable
*/ */
public function get_depreciation() public function get_depreciation()
{ {
return $this->model->depreciation; if ($this->model) {
return $this->model->depreciation;
}
} }
/** /**