mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
"fixed empty settings in infolog, reported on user-list"
This commit is contained in:
parent
0e976fc169
commit
3417bc8115
@ -72,11 +72,21 @@
|
|||||||
$GLOBALS['egw']->translation->add_app('preferences'); // we need the prefs translations too
|
$GLOBALS['egw']->translation->add_app('preferences'); // we need the prefs translations too
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$GLOBALS['egw']->hooks->single('settings',$this->appname))
|
// calling the settings hook
|
||||||
|
$settings = $GLOBALS['egw']->hooks->single('settings',$this->appname);
|
||||||
|
// it either returns the settings or save it in $GLOBALS['settings'] (deprecated!)
|
||||||
|
if (isset($settings) && is_array($settings) && $settings)
|
||||||
{
|
{
|
||||||
return False;
|
$this->settings = array_merge($this->settings,$settings);
|
||||||
|
}
|
||||||
|
elseif(isset($GLOBALS['settings']) && is_array($GLOBALS['settings']) && $GLOBALS['settings'])
|
||||||
|
{
|
||||||
|
$this->settings = array_merge($this->settings,$GLOBALS['settings']);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return False; // no settings returned
|
||||||
}
|
}
|
||||||
$this->settings = array_merge($this->settings,$GLOBALS['settings']);
|
|
||||||
|
|
||||||
/* Remove ui-only settings */
|
/* Remove ui-only settings */
|
||||||
if($this->xmlrpc)
|
if($this->xmlrpc)
|
||||||
|
Loading…
Reference in New Issue
Block a user