Prevent notices by checking if the $group key isset(). See #20004.

git-svn-id: https://develop.svn.wordpress.org/trunk@20091 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2012-03-02 21:57:03 +00:00
parent 2ebabb330c
commit c306dddb62

View File

@ -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] );
}
/**