diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index b76051abe1c8..2d3baab83515 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -164,9 +164,7 @@ class AccountController extends BaseController Session::flash('warning', trans('texts.plan_refunded')); } - $hasPaid = false; if (! empty($planDetails['paid']) && $plan != PLAN_FREE) { - $hasPaid = true; $time_used = $planDetails['paid']->diff(date_create()); $days_used = $time_used->days; @@ -182,11 +180,7 @@ class AccountController extends BaseController if ($newPlan['price'] > $credit) { $invitation = $this->accountRepo->enablePlan($newPlan, $credit); - if ($hasPaid) { - return Redirect::to('view/' . $invitation->invitation_key); - } else { - return Redirect::to('payment/' . $invitation->invitation_key); - } + return Redirect::to('view/' . $invitation->invitation_key); } else { if ($plan == PLAN_FREE) { $company->discount = 0;