From: Roland Häder Date: Wed, 29 Jul 2009 19:47:45 +0000 (+0000) Subject: Fix for if session has expired and user is still in login area X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=525510c6f6ee4798619dba6236c6b6d85263ac22;p=mailer.git Fix for if session has expired and user is still in login area --- diff --git a/inc/modules/login.php b/inc/modules/login.php index 40327c98b7..06c4ffb97b 100644 --- a/inc/modules/login.php +++ b/inc/modules/login.php @@ -42,7 +42,7 @@ if (!defined('__SECURITY')) { require($INC); } elseif (!IS_MEMBER()) { $URL = 'modules.php?module=index'; - if ($check == 'mem_only') $URL .= '&msg='.getCode('MODULE_MEM_ONLY') . '&mod='.getModule(); + if (checkModulePermissions('login') == 'mem_only') $URL .= '&msg='.getCode('MODULE_MEM_ONLY') . '&mod='.getModule(); redirectToUrl($URL); }