More fixes for installation phase. Thanks to AndreasJung
[mailer.git] / inc / libs / admins_functions.php
index 65325e1a698ca1b755a5a82b27e9e2038d9be255..8bb7c27ad46dba54cc4ca395c0c95365cdbe6559 100644 (file)
@@ -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;
                                        }
                                }