notice fixes
authorRoland Häder <roland@mxchange.org>
Fri, 15 Feb 2008 20:53:23 +0000 (20:53 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 15 Feb 2008 20:53:23 +0000 (20:53 +0000)
inc/load_cache.php

index 0f22199..3cca361 100644 (file)
@@ -68,11 +68,11 @@ if (($CACHE->cache_file("admins", true) == true)) {
                                //* DEBUG: */ print_r($ADMINS);
 
                                // Clear array
-                               unset($ADMINS['aid'][$k]);
-                               unset($ADMINS['def_acl'][$k]);
-                               unset($ADMINS['la_mode'][$k]);
-                               unset($ADMINS['password'][$k]);
-                               unset($ADMINS['email'][$k]);
+                               if (isset($ADMINS['aid'][$k]))          unset($ADMINS['aid'][$k]);
+                               if (isset($ADMINS['def_acl'][$k]))      unset($ADMINS['def_acl'][$k]);
+                               if (isset($ADMINS['la_mode'][$k]))      unset($ADMINS['la_mode'][$k]);
+                               if (isset($ADMINS['password'][$k]))     unset($ADMINS['password'][$k]);
+                               if (isset($ADMINS['email'][$k]))        unset($ADMINS['email'][$k]);
                        }
 
                        //* DEBUG: */ print_r($ADMINS);