Skip to content

Commit

Permalink
Fix wrong method name from previous commit 💩
Browse files Browse the repository at this point in the history
  • Loading branch information
Molkobain committed Dec 1, 2021
1 parent 78afc7e commit 07bc388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ajax.toolkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function InitDataModel($sConfigFileName, $bModelOnly = true)
break;

case 'check_db_schema':
$sCurrEnv = (is_set($_SESSION['itop_env']) && !is_null($_SESSION['itop_env'])) ? $_SESSION['itop_env'] : null;
$sCurrEnv = (isset($_SESSION['itop_env']) && !is_null($_SESSION['itop_env'])) ? $_SESSION['itop_env'] : null;
$_SESSION['itop_env'] = TOOLKITENV;
InitDataModel(ITOP_TOOLKIT_CONFIG_FILE, false);

Expand Down Expand Up @@ -761,7 +761,7 @@ function InitDataModel($sConfigFileName, $bModelOnly = true)
break;

case 'check_db_schema':
$sCurrEnv = (is_set($_SESSION['itop_env']) && !is_null($_SESSION['itop_env'])) ? $_SESSION['itop_env'] : null;
$sCurrEnv = (isset($_SESSION['itop_env']) && !is_null($_SESSION['itop_env'])) ? $_SESSION['itop_env'] : null;
$_SESSION['itop_env'] = TOOLKITENV;
InitDataModel(ITOP_TOOLKIT_CONFIG_FILE, false);

Expand Down

0 comments on commit 07bc388

Please sign in to comment.