From dbab9e4f70884da0867d6623009d6237270863dc Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 14 Mar 2008 12:03:37 +0000 Subject: Test the cache group properly git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1210 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wp-includes/cache.php') diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 0fe45ff..338f20b 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -86,10 +86,10 @@ class WP_Object_Cache { $group = 'default'; $pre_test = substr( $group, 0, strpos( $group, '-' ) ); - if( $pre_test == intval( $pre_test ) ) + if( $pre_test != '' && $pre_test == intval( $pre_test ) ) return $group; // already localized. $prefix = ''; - if (false === array_search($group, $this->global_groups)) + if (true !== array_search($group, $this->global_groups)) $prefix = $wpdb->blogid . '-'; return "$prefix$group"; -- cgit