mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Fuckery.
This commit is contained in:
parent
cf8feb37e1
commit
4be8ae7f3d
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue