Skip to content

Commit

Permalink
fix for 0005957: check.php generates php warnings when checking obsel…
Browse files Browse the repository at this point in the history
…ete configs

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@3698 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
thraxisp committed Jul 17, 2005
1 parent 14bd64b commit b1b9b34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/config_api.php
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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] ) ;
Expand Down

0 comments on commit b1b9b34

Please sign in to comment.