Skip to content

Commit

Permalink
Merge pull request #220 from sumobi/issue/216
Browse files Browse the repository at this point in the history
Use isset, add exit
  • Loading branch information
ideadude committed Jul 22, 2015
2 parents 0c3bfb6 + 9239169 commit 0e6c38e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions preheaders/cancel.php
Expand Up @@ -7,10 +7,10 @@
if($current_user->ID)
$current_user->membership_level = pmpro_getMembershipLevelForUser($current_user->ID);

//if they don't have a membership, send them back to the subscription page
if(empty($current_user->membership_level->ID)) {
if(!isset($current_user->membership_level->ID)) {
wp_redirect(pmpro_url("levels"));
}
exit;
}

if(isset($_REQUEST['confirm']))
$pmpro_confirm = $_REQUEST['confirm'];
Expand Down

0 comments on commit 0e6c38e

Please sign in to comment.