stop prefs being wiped out ... bug #1352

This commit is contained in:
skwashd 2002-11-23 03:29:14 +00:00
parent 380db5df05
commit ab7516be43

View File

@ -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 ();