From b1b9b34f25c30bfd66f6420b0df0b233cf8f79ee Mon Sep 17 00:00:00 2001 From: Glenn Henshaw Date: Sun, 17 Jul 2005 17:05:28 +0000 Subject: [PATCH] fix for 0005957: check.php generates php warnings when checking obselete configs git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3698 f5dc347c-c33d-0410-90a0-b07cc1902cb9 --- core/config_api.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/config_api.php b/core/config_api.php index 95131c24a3..f06605411b 100644 --- a/core/config_api.php +++ b/core/config_api.php @@ -6,7 +6,7 @@ # See the README and LICENSE files for details # -------------------------------------------------------- - # $Id: config_api.php,v 1.32 2005-07-16 01:46:02 thraxisp Exp $ + # $Id: config_api.php,v 1.33 2005-07-17 17:05:28 thraxisp Exp $ # -------------------------------------------------------- # cache for config variables @@ -153,7 +153,7 @@ function config_get_access( $p_option, $p_user = null, $p_project = null ) { # @@ debug @@ echo "lu o=$p_option "; if ( ! $g_cache_filled ) { - $t = config_get( $p_option, null, $p_user, $p_project ); + $t = config_get( $p_option, -1, $p_user, $p_project ); } # prepare the user's list @@ -200,7 +200,7 @@ function config_is_set( $p_option, $p_user = null, $p_project = null ) { global $g_cache_config, $g_cache_filled; if ( ! $g_cache_filled ) { - $t = config_get( $p_option, null, $p_user, $p_project ); + $t = config_get( $p_option, -1, $p_user, $p_project ); } # prepare the user's list @@ -235,7 +235,7 @@ function config_is_set( $p_option, $p_user = null, $p_project = null ) { } if ( $t_found ) { - return $t_value; + return true; } return isset( $GLOBALS['g_' . $p_option] ) ;