From b8572cf16ebc2e5e9afbcaef709326dca2823ebd Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 31 Jan 2006 12:19:53 +0000 Subject: 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 --- wp-inst/wp-includes/wpmu-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ) -- cgit