Skip to content

Commit 9616774

Browse files
committed
- Fixed FS#2182.
1 parent 4d69f4f commit 9616774

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

interface/lib/classes/getconf.inc.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,10 @@ public function get_server_config($server_id, $section = '') {
4747
public function get_global_config($section = '') {
4848
global $app;
4949

50-
if(isset($this->config['global'])) {
50+
if(!isset($this->config['global'])) {
5151
$app->uses('ini_parser');
5252
$tmp = $app->db->queryOneRecord('SELECT config FROM sys_ini WHERE sysini_id = 1');
5353
$this->config['global'] = $app->ini_parser->parse_ini_string(stripslashes($tmp['config']));
54-
} else {
55-
$this->config['global'] = NULL;
5654
}
5755
return ($section == '') ? $this->config['global'] : $this->config['global'][$section];
5856
}

0 commit comments

Comments
 (0)