X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmysql-manager.php;h=836d1d850dc9fa3ef5080c8ec5571491646514c9;hb=f779509d5ffda505e81ab1d6b30decf15bfc7fbd;hp=62a8fbc8987d353d60b72456f90b002a9cb22c4a;hpb=342bb1c9f3756724c596abe660de46f2ca74d788;p=mailer.git diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index 62a8fbc898..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]); @@ -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