Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / inc / modules / admin / action-logout.php
index 82b4aeacda42f508ce2eb1889759268c14429198..49f02d5674323db92889ee22543844bfc1c23d9e 100644 (file)
@@ -40,10 +40,10 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 // Add description as navigation point
 ADD_DESCR("admin", __FILE__);
 
-if (!empty($_POST['no'])) {
+if (REQUEST_ISSET_POST(('no'))) {
        // Do not logout now
        LOAD_URL("admin.php");
-} elseif ((!empty($_POST['yes'])) && ($GLOBALS['action'] == "logout")) {
+} elseif ((REQUEST_ISSET_POST(('yes'))) && ($GLOBALS['action'] == "logout")) {
        // Redirect to logout link
        LOAD_URL("modules.php?module=admin&logout=1");
 }