one server-config missed in r36329: arrays in $GLOBALS[egw_info][server] are now automatically serialized and unserialized

This commit is contained in:
Ralf Becker 2011-08-27 16:11:10 +00:00
parent 8b49d88788
commit 10325b93c8

View File

@ -283,7 +283,8 @@ class addressbook_bo extends addressbook_so
'adr_two_countryname' => lang('country').' ('.lang('business').')', 'adr_two_countryname' => lang('country').' ('.lang('business').')',
); );
//_debug_array($this->contact_fields); //_debug_array($this->contact_fields);
$this->own_account_acl = unserialize($GLOBALS['egw_info']['server']['own_account_acl']); $this->own_account_acl = $GLOBALS['egw_info']['server']['own_account_acl'];
if (!is_array($this->own_account_acl)) $this->own_account_acl = unserialize($this->own_account_acl);
// we have only one acl (n_fn) for the whole name, as not all backends store every part in an own field // we have only one acl (n_fn) for the whole name, as not all backends store every part in an own field
if ($this->own_account_acl && in_array('n_fn',$this->own_account_acl)) if ($this->own_account_acl && in_array('n_fn',$this->own_account_acl))
{ {