Fix sessionPremium redirect in session about

remotes/angel/1.11.x
José Loguercio 8 years ago
parent cc23996cb4
commit 69d073ffcd
  1. 3
      main/session/about.php

@ -196,8 +196,9 @@ $template->assign(
$plugin = BuyCoursesPlugin::create();
$checker = $plugin->get('paypal_enable') || $plugin->get('transfer_enable') || $plugin->get('culqi_enable');
$sessionIsPremium = $plugin->getItemByProduct($sessionId, BuyCoursesPlugin::PRODUCT_TYPE_SESSION);
if ($checker) {
if ($checker && $sessionIsPremium) {
Session::write('SessionIsPremium', true);
Session::write('sessionId', $sessionId);
}

Loading…
Cancel
Save