]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
Fixed 'last' array, TODOs.txt updated
[mailer.git] / inc / mysql-manager.php
index 9fc243f21403d3acd2326267c07def46c4101a92..2fdeaa1ad8d9bae3074329f02eb28e5863af8e32 100644 (file)
@@ -513,7 +513,10 @@ function IS_MEMBER () {
        // @TODO Why is this global??? #100
        global $status;
 
-       if (!is_array($GLOBALS['last'])) $GLOBALS['last'] = array();
+       // Fix missing 'last' array, damn stupid code :(((
+       // @TODO Try to rewrite this to one or more functions
+       if ((!isset($GLOBALS['last'])) || (!is_array($GLOBALS['last']))) $GLOBALS['last'] = array();
+
        $ret = false;
 
        // is the cache entry there?