Fix upgrading
This commit is contained in:
parent
e899be7c55
commit
81ec506f00
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ class AccountController extends BaseController
|
|||
Session::flash('warning', trans('texts.plan_refunded'));
|
||||
}
|
||||
|
||||
if (! empty($planDetails['paid']) && $plan != PLAN_FREE) {
|
||||
if ($company->payment && ! empty($planDetails['paid']) && $plan != PLAN_FREE) {
|
||||
$time_used = $planDetails['paid']->diff(date_create());
|
||||
$days_used = $time_used->days;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue