X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=836d1d850dc9fa3ef5080c8ec5571491646514c9;hb=f779509d5ffda505e81ab1d6b30decf15bfc7fbd;hp=9c5f649dd89bfdec34f27bdb74296cc5fc6bbed9;hpb=b3289b459e5ada987ad2cae7fc20c0c9c851d363;p=mailer.git diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 9c5f649dd8..836d1d850d 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -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]); @@ -652,7 +652,10 @@ function isAdmin ($admin = '') { //* DEBUG: */ print(__FUNCTION__.':'.$admin.'/'.$passCookie.'
'); // Do we have cache? - if (!isset($GLOBALS['is_admin'][$admin] + 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