X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fadmins_functions.php;h=8bb7c27ad46dba54cc4ca395c0c95365cdbe6559;hb=9709e0653e1a90fd65e6308b97a6fabb586a32a1;hp=65325e1a698ca1b755a5a82b27e9e2038d9be255;hpb=7f104f6fe558bb56b4205241435a2357c2feece1;p=mailer.git diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php index 65325e1a69..8bb7c27ad4 100644 --- a/inc/libs/admins_functions.php +++ b/inc/libs/admins_functions.php @@ -53,7 +53,7 @@ function ADMINS_CHECK_ACL($act, $wht) { $default = $cacheArray['admins']['def_acl'][get_session('admin_login')]; // Count cache hits - $_CONFIG['cache_hits']++; + if (isset($_CONFIG['cache_hits'])) { $_CONFIG['cache_hits']++; } else { $_CONFIG['cache_hits'] = 1; } } elseif (!is_object($cacheInstance)) { // Load from database $default = GET_ADMIN_DEFAULT_ACL(get_session('admin_login')); @@ -95,7 +95,7 @@ function ADMINS_CHECK_ACL($act, $wht) { } if ($lines == 1) { // Count cache hits - $_CONFIG['cache_hits']++; + if (isset($_CONFIG['cache_hits'])) { $_CONFIG['cache_hits']++; } else { $_CONFIG['cache_hits'] = 1; } break; } }