summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-01-31 12:19:53 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-01-31 12:19:53 +0000
commitb8572cf16ebc2e5e9afbcaef709326dca2823ebd (patch)
treea263e83a983f4985d1e1b22b7669603eb850c35f
parentb42619eaf1fc327087206d1c5057fecd2d089867 (diff)
downloadwordpress-mu-b8572cf16ebc2e5e9afbcaef709326dca2823ebd.tar.gz
wordpress-mu-b8572cf16ebc2e5e9afbcaef709326dca2823ebd.tar.xz
wordpress-mu-b8572cf16ebc2e5e9afbcaef709326dca2823ebd.zip
get_var returns null if no record found (thanks Jimmy Holmlund)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@522 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--wp-inst/wp-includes/wpmu-functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/wpmu-functions.php b/wp-inst/wp-includes/wpmu-functions.php
index 062d0b5..958767e 100644
--- a/wp-inst/wp-includes/wpmu-functions.php
+++ b/wp-inst/wp-includes/wpmu-functions.php
@@ -479,7 +479,7 @@ function add_site_option( $key, $value ) {
$exists = $wpdb->get_var("SELECT meta_value FROM $wpdb->sitemeta WHERE meta_key = '$key' AND site_id = '$wpdb->siteid'");
- if ( false !== $exists ) // If we already have it
+ if ( null !== $exists ) // If we already have it
return false;
if ( is_array($value) || is_object($value) )