Make code more readable.

This commit is contained in:
paul 2006-11-23 07:24:44 +00:00
parent 5174eeb1d6
commit c175de0cb3

View file

@ -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