mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:04:30 -04:00
Fix upgrading
This commit is contained in:
parent
a0222acc7d
commit
6ae826b162
@ -164,7 +164,7 @@ class AccountController extends BaseController
|
|||||||
Session::flash('warning', trans('texts.plan_refunded'));
|
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());
|
$time_used = $planDetails['paid']->diff(date_create());
|
||||||
$days_used = $time_used->days;
|
$days_used = $time_used->days;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user