diff --git a/admin/inc/class.admin_egw_group_record.inc.php b/admin/inc/class.admin_egw_group_record.inc.php index 7013205393..e78c8b99b9 100644 --- a/admin/inc/class.admin_egw_group_record.inc.php +++ b/admin/inc/class.admin_egw_group_record.inc.php @@ -37,10 +37,15 @@ class admin_egw_group_record implements importexport_iface_egw_record public function __construct( $_identifier='' ) { if(is_array($_identifier)) { $this->identifier = $_identifier['account_id']; - } else { + } + else + { $this->identifier = $_identifier; } - $this->set_record($GLOBALS['egw']->accounts->read($this->identifier)); + if($this->identifier) + { + $this->set_record($GLOBALS['egw']->accounts->read($this->identifier)); + } } /** diff --git a/admin/inc/class.admin_egw_user_record.inc.php b/admin/inc/class.admin_egw_user_record.inc.php index 7459c8ad25..479a23f36d 100644 --- a/admin/inc/class.admin_egw_user_record.inc.php +++ b/admin/inc/class.admin_egw_user_record.inc.php @@ -41,7 +41,10 @@ class admin_egw_user_record implements importexport_iface_egw_record } else { $this->identifier = $_identifier; } - $this->set_record($GLOBALS['egw']->accounts->read($this->identifier)); + if($this->identifier) + { + $this->set_record($GLOBALS['egw']->accounts->read($this->identifier)); + } } /**