diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 798d4cd4c9..219f1ca0a4 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -127,11 +127,10 @@ class Asset extends Depreciable public function availableForCheckout() { - return ( - empty($this->assigned_to) && - $this->assetstatus->deployable == 1 && - empty($this->deleted_at) - ); + if ((empty($this->assigned_to)) && (empty($this->deleted_at)) && ($this->assetstatus->deployable == 1)) { + return true; + } + return false; } /**