if (REQUEST_ISSET_POST('no')) {
// Do not logout now
redirectToUrl('admin.php');
-} elseif ((REQUEST_ISSET_POST(('yes'))) && ($GLOBALS['action'] == 'logout')) {
+} elseif ((REQUEST_ISSET_POST(('yes'))) && (getAction() == 'logout')) {
// Redirect to logout link
redirectToUrl('modules.php?module=admin&logout=1');
}