Skip to content

Commit

Permalink
Fix sessionPremium redirect in session about
Browse files Browse the repository at this point in the history
  • Loading branch information
jloguercio committed Feb 16, 2017
1 parent cc23996 commit 69d073f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/session/about.php
Expand Up @@ -196,8 +196,9 @@

$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);
}
Expand Down

2 comments on commit 69d073f

@jmontoyaa
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generates a fatal error when entering main/session/about.php?session_id=xx

@jmontoyaa
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed ce37836

Please sign in to comment.