Admin: Avoid deprecated accounts->read() usage when importing

accounts->read() requires an ID
This commit is contained in:
nathan 2024-10-09 10:40:08 -06:00
parent f654b4ee00
commit 6bf85f7808
2 changed files with 11 additions and 3 deletions

View File

@ -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));
}
}
/**

View File

@ -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));
}
}
/**