Fix for if session has expired and user is still in login area
authorRoland Häder <roland@mxchange.org>
Wed, 29 Jul 2009 19:47:45 +0000 (19:47 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 29 Jul 2009 19:47:45 +0000 (19:47 +0000)
inc/modules/login.php

index 40327c9..06c4ffb 100644 (file)
@@ -42,7 +42,7 @@ if (!defined('__SECURITY')) {
        require($INC);
 } elseif (!IS_MEMBER()) {
        $URL = 'modules.php?module=index';
-       if ($check == 'mem_only') $URL .= '&amp;msg='.getCode('MODULE_MEM_ONLY') . '&amp;mod='.getModule();
+       if (checkModulePermissions('login') == 'mem_only') $URL .= '&amp;msg='.getCode('MODULE_MEM_ONLY') . '&amp;mod='.getModule();
        redirectToUrl($URL);
 }