mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Check that preferences is an object (for use from setup)
This commit is contained in:
parent
5f5f24e2ae
commit
3279692e7a
@ -689,7 +689,7 @@
|
||||
}
|
||||
/* print ldap_error($this->ds); */
|
||||
|
||||
if($account_id)
|
||||
if($account_id && is_object($GLOBALS['phpgw']->preferences))
|
||||
{
|
||||
$GLOBALS['phpgw']->preferences->create_defaults($account_id);
|
||||
return $account_id;
|
||||
|
@ -290,7 +290,7 @@
|
||||
. "','" . $account_info['account_expires'] . "')",__LINE__,__FILE__);
|
||||
|
||||
$accountid = $this->db->get_last_insert_id('phpgw_accounts','account_id');
|
||||
if($accountid)
|
||||
if($accountid && is_object($GLOBALS['phpgw']->preferences))
|
||||
{
|
||||
$GLOBALS['phpgw']->preferences->create_defaults($accountid);
|
||||
return $accountid;
|
||||
|
Loading…
Reference in New Issue
Block a user