mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +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
|
* grab the owner name
|
||||||
*
|
*
|
||||||
* @param $id account id
|
* @param $id account id
|
||||||
|
* @return string full name of user or "#$accountid" if user not found
|
||||||
*/
|
*/
|
||||||
static function grab_owner_name($accountid = '')
|
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);
|
return self::display_fullname($lid,$fname,$lname,$accountid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user