]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-manager.php
New extension added, ext-uberwach rewritten (unfinished), some fixes
[mailer.git] / inc / mysql-manager.php
index 62a8fbc8987d353d60b72456f90b002a9cb22c4a..836d1d850dc9fa3ef5080c8ec5571491646514c9 100644 (file)
@@ -253,7 +253,7 @@ function checkModulePermissions ($mod = '') {
 
                        // Destroy cache here
                        // @TODO Rewrite this to a filter
-                       if (getOutputMode() == 0) rebuildCacheFile('modules', 'modules');
+                       if ((getOutputMode() == 0) || (getOutputMode() == -1)) rebuildCacheFile('modules', 'modules');
 
                        // And reload data
                        unset($GLOBALS['module_status'][$mod]);
@@ -653,6 +653,9 @@ function isAdmin ($admin = '') {
 
        // Do we have cache?
        if (!isset($GLOBALS['is_admin'][$admin])) {
+               // Init it with failed
+               $GLOBALS['is_admin'][$admin] = false;
+
                // Search in array for entry
                if (isset($GLOBALS['admin_hash'])) {
                        // Use cached string