Cache will be rebuild after refback is installed
[mailer.git] / mailid.php
index d530bb2a3b839450f3dae768a6aa55562f21a99d..fcb310d01b8b4b8c744f3a8be48a575fab4d3f6c 100644 (file)
@@ -44,7 +44,7 @@ $GLOBALS['module'] = "mailid"; $CSS = -1;
 // Load the required file(s)
 require ("inc/config.php");
 
-if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
+if (isBooleanConstantAndTrue('mxchange_installed'))
 {
        // Is the extension active
        if (!EXT_IS_ACTIVE("mailid", true)) {
@@ -111,8 +111,13 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                        if (SQL_NUMROWS($result) == 1) {
                                // Load data
                                list($pool, $URL, $EXTRA_TITLE) = SQL_FETCHROW($result);
+
+                               // Free result
                                SQL_FREERESULT($result);
 
+                               // Compile extra title
+                               $EXTRA_TITLE = COMPILE_CODE($EXTRA_TITLE);
+
                                // Is the user's ID unlocked?
                                $result = SQL_QUERY_ESC("SELECT status, gender, surname, family FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
                                 array($url_uid), __FILE__, __LINE__);
@@ -206,6 +211,10 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
                        case "REJECT": // Redirect to rejection page
                                LOAD_URL($_CONFIG['reject_url']);
                                break;
+
+                       default:
+                               LOAD_URL("modules.php?module=index&msg=".CODE_UNKNOWN_STATUS."&ext=mailid");
+                               break;
                }
        } else {
                // Include footer