mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +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,10 +37,15 @@ class admin_egw_group_record implements importexport_iface_egw_record
|
|||||||
public function __construct( $_identifier='' ) {
|
public function __construct( $_identifier='' ) {
|
||||||
if(is_array($_identifier)) {
|
if(is_array($_identifier)) {
|
||||||
$this->identifier = $_identifier['account_id'];
|
$this->identifier = $_identifier['account_id'];
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
$this->identifier = $_identifier;
|
$this->identifier = $_identifier;
|
||||||
}
|
}
|
||||||
$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
|
if($this->identifier)
|
||||||
|
{
|
||||||
|
$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,7 +41,10 @@ class admin_egw_user_record implements importexport_iface_egw_record
|
|||||||
} else {
|
} else {
|
||||||
$this->identifier = $_identifier;
|
$this->identifier = $_identifier;
|
||||||
}
|
}
|
||||||
$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
|
if($this->identifier)
|
||||||
|
{
|
||||||
|
$this->set_record($GLOBALS['egw']->accounts->read($this->identifier));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user