From b91909b1a70c4cf6fc9bdb28d0192a52a1e98c09 Mon Sep 17 00:00:00 2001 From: brettp Date: Sun, 20 Feb 2011 18:16:21 +0000 Subject: Refs #2813, #2956. Ported get_config() returns null to 1.8's get_config() and elgg_get_config(). git-svn-id: http://code.elgg.org/elgg/trunk@8362 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/configuration.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 05a5adcc4..bf120a519 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -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; } /** -- cgit v1.2.3