mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
stop prefs being wiped out ... bug #1352
This commit is contained in:
parent
380db5df05
commit
ab7516be43
@ -611,6 +611,7 @@ if ($messages)
|
|||||||
if (!is_array ($GLOBALS['settings']))
|
if (!is_array ($GLOBALS['settings']))
|
||||||
{
|
{
|
||||||
$pref = CreateObject ('phpgwapi.preferences', $GLOBALS['userinfo']['username']);
|
$pref = CreateObject ('phpgwapi.preferences', $GLOBALS['userinfo']['username']);
|
||||||
|
$pref->read_repository ();
|
||||||
$GLOBALS['phpgw']->hooks->single ('add_def_pref', $GLOBALS['appname']);
|
$GLOBALS['phpgw']->hooks->single ('add_def_pref', $GLOBALS['appname']);
|
||||||
$pref->save_repository (True);
|
$pref->save_repository (True);
|
||||||
$pref_array = $pref->read_repository ();
|
$pref_array = $pref->read_repository ();
|
||||||
|
Loading…
Reference in New Issue
Block a user