mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
give #account_id, if user not found
This commit is contained in:
parent
ba46b54355
commit
92d861e712
@ -398,11 +398,14 @@ class common
|
||||
* grab the owner name
|
||||
*
|
||||
* @param $id account id
|
||||
* @return string full name of user or "#$accountid" if user not found
|
||||
*/
|
||||
static function grab_owner_name($accountid = '')
|
||||
{
|
||||
$GLOBALS['egw']->accounts->get_account_name($accountid,$lid,$fname,$lname);
|
||||
|
||||
if (!$GLOBALS['egw']->accounts->get_account_name($accountid,$lid,$fname,$lname))
|
||||
{
|
||||
return '#'.$accountid;
|
||||
}
|
||||
return self::display_fullname($lid,$fname,$lname,$accountid);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user