mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -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'));
|
||||
}
|
||||
|
||||
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…
x
Reference in New Issue
Block a user