give #account_id, if user not found

This commit is contained in:
Ralf Becker 2011-06-24 10:28:08 +00:00
parent ba46b54355
commit 92d861e712

View File

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