Fix for referral count
This commit is contained in:
parent
c7cb72546f
commit
6b12cfb63a
1 changed files with 5 additions and 0 deletions
|
|
@ -160,6 +160,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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue