diff --git a/preferences/inc/class.bosettings.inc.php b/preferences/inc/class.bosettings.inc.php index ccf1c36219..62ed3d3f70 100644 --- a/preferences/inc/class.bosettings.inc.php +++ b/preferences/inc/class.bosettings.inc.php @@ -103,7 +103,7 @@ return True; } - function read($app,$prefix,$type='user') + function read($app,$prefix='',$type='user') { switch($type) // set up some class vars to be used when processing the hooks { @@ -130,6 +130,15 @@ echo 'Preferences array:' . "\n"; _debug_array($this->prefs); } + /* Ensure that a struct will be returned via xml-rpc (this might change) */ + if($this->xmlrpc) + { + return $this->prefs; + } + else + { + return False; + } } function _write($appname,$prefix,$type='user') @@ -196,7 +205,7 @@ $GLOBALS['egw']->preferences->save_repository(True,$type); - return False; + return $this->prefs; } function check_app()