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
This commit is contained in:
duck_ 2012-03-02 21:57:03 +00:00
parent 085a053c22
commit c0892fbaf0

View File

@ -534,7 +534,7 @@ class WP_Object_Cache {
* @access private * @access private
*/ */
protected function _exists($key, $group) { 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] );
} }
/** /**