Make code more readable.
This commit is contained in:
parent
5174eeb1d6
commit
c175de0cb3
1 changed files with 4 additions and 3 deletions
|
@ -199,7 +199,7 @@ class uiBase
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load system preferences.
|
* Load the system preferences into the session.
|
||||||
*
|
*
|
||||||
* @param array $mask
|
* @param array $mask
|
||||||
* @param boolean $reload
|
* @param boolean $reload
|
||||||
|
@ -210,7 +210,8 @@ class uiBase
|
||||||
$this->STATIONPREFS = array();
|
$this->STATIONPREFS = array();
|
||||||
foreach ($mask as $key => $val) {
|
foreach ($mask as $key => $val) {
|
||||||
if (isset($val['isPref']) && $val['isPref']) {
|
if (isset($val['isPref']) && $val['isPref']) {
|
||||||
if (is_string($setting = $this->gb->loadGroupPref(NULL, 'StationPrefs', $val['element']))) {
|
$setting = $this->gb->loadGroupPref(NULL, 'StationPrefs', $val['element']);
|
||||||
|
if (is_string($setting)) {
|
||||||
$this->STATIONPREFS[$val['element']] = $setting;
|
$this->STATIONPREFS[$val['element']] = $setting;
|
||||||
} elseif ($val['required']) {
|
} elseif ($val['required']) {
|
||||||
// set default values on first login
|
// set default values on first login
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue