mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Admin: Avoid deprecated accounts->read() usage when importing
accounts->read() requires an ID
This commit is contained in:
parent
f654b4ee00
commit
6bf85f7808
@ -37,11 +37,16 @@ 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;
|
||||
}
|
||||
if($this->identifier)
|
||||
{
|
||||
$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* magic method to set attributes of record
|
||||
|
@ -41,8 +41,11 @@ class admin_egw_user_record implements importexport_iface_egw_record
|
||||
} else {
|
||||
$this->identifier = $_identifier;
|
||||
}
|
||||
if($this->identifier)
|
||||
{
|
||||
$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* magic method to set attributes of record
|
||||
|
Loading…
Reference in New Issue
Block a user