From c0892fbaf0ad5d0e356941007d323630acd8702d Mon Sep 17 00:00:00 2001 From: duck_ Date: Fri, 2 Mar 2012 21:57:03 +0000 Subject: [PATCH] Prevent notices by checking if the $group key isset(). See #20004. git-svn-id: http://svn.automattic.com/wordpress/trunk@20091 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 232bf735cd..bb61249cfb 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -534,7 +534,7 @@ class WP_Object_Cache { * @access private */ protected function _exists($key, $group) { - return is_array( $this->cache[$group] ) && array_key_exists( $key, $this->cache[$group] ); + return isset( $this->cache[$group] ) && is_array( $this->cache[$group] ) && array_key_exists( $key, $this->cache[$group] ); } /**