summaryrefslogtreecommitdiffstats
path: root/wp-includes/cache.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-03-14 12:03:37 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-03-14 12:03:37 +0000
commitdbab9e4f70884da0867d6623009d6237270863dc (patch)
treeead1b54de656d30583c568d9c9c2cac4cf5bfec2 /wp-includes/cache.php
parente7cc5de2f2a3295808a00157fd88035bb6c6ac05 (diff)
downloadwordpress-mu-dbab9e4f70884da0867d6623009d6237270863dc.tar.gz
wordpress-mu-dbab9e4f70884da0867d6623009d6237270863dc.tar.xz
wordpress-mu-dbab9e4f70884da0867d6623009d6237270863dc.zip
Test the cache group properly
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1210 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/cache.php')
-rw-r--r--wp-includes/cache.php4
1 files changed, 2 insertions, 2 deletions
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";