]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2813, #2956. Ported get_config() returns null to 1.8's get_config() and elgg_ge...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 20 Feb 2011 18:16:21 +0000 (18:16 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 20 Feb 2011 18:16:21 +0000 (18:16 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8362 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/configuration.php

index 05a5adcc40eaa29ba04e7f1d193bd28a06d7ba7c..bf120a519f63b5d0544acf8bb6f0b033f00caa00 100644 (file)
@@ -78,7 +78,7 @@ function elgg_get_root_dir() {
  * @param string $name      Name of the configuration value
  * @param int    $site_guid NULL for installation setting, 0 for default site
  *
- * @return mixed Configuration value or false if it does not exist
+ * @return mixed Configuration value or null if it does not exist
  * @since 1.8.0
  */
 function elgg_get_config($name, $site_guid = 0) {
@@ -106,7 +106,7 @@ function elgg_get_config($name, $site_guid = 0) {
                return $value;
        }
 
-       return false;
+       return null;
 }
 
 /**
@@ -409,7 +409,7 @@ function set_config($name, $value, $site_guid = 0) {
  * @param string $name      The name of the config value
  * @param int    $site_guid Optionally, the GUID of the site (current site is assumed by default)
  *
- * @return mixed|false
+ * @return mixed|null
  * @see set_config()
  * @see unset_config()
  */
@@ -469,7 +469,7 @@ function get_config($name, $site_guid = 0) {
                return $result;
        }
 
-       return false;
+       return null;
 }
 
 /**