Some functions rewritten to hungarian notation, handling of array rewritten
[mailer.git] / inc / modules / guest / what-login.php
index 6b108994f6918487ef27986af1ab8e2de9ecd362..23d2f9df8b82fdebf3fd022d2562e034b499fe2e 100644 (file)
@@ -37,7 +37,7 @@ if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 } elseif ((!EXT_IS_ACTIVE("user")) && (!IS_ADMIN())) {
-       ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "user");
+       addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "user");
        return;
 }
 
@@ -162,8 +162,7 @@ if (EXT_IS_ACTIVE("nickname")) {
 // Was an URL constructed?
 if (!empty($URL)) {
        // URL was constructed
-       global $FATAL;
-       if (!empty($FATAL[0])) {
+       if (getTotalFatalErrorMessages()) {
                // Fatal errors!
                require_once(PATH."inc/fatal_errors.php");
        } else {