diff --git a/app/Models/Company.php b/app/Models/Company.php index ddb01766aa..c7ae9e8733 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -155,6 +155,11 @@ class Company extends Eloquent public function getPlanDetails($includeInactive = false, $includeTrial = true) { $account = $this->accounts()->first(); + + if (! $account) { + return false; + } + return $account->getPlanDetails($includeInactive, $includeTrial); }