mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fix Api\Accounts::username(): Argument #1 ($account_id) must be of type ?int, string given
This commit is contained in:
parent
e1997befe9
commit
867c000d99
@ -190,7 +190,7 @@ class Customfields implements \IteratorAggregate
|
||||
/**
|
||||
* Format a single custom field value as string
|
||||
*
|
||||
* @param array $field field defintion incl. type
|
||||
* @param array $field field definition incl. type
|
||||
* @param string $value field value
|
||||
* @return string formatted value
|
||||
*/
|
||||
@ -204,7 +204,7 @@ class Customfields implements \IteratorAggregate
|
||||
$values = array();
|
||||
foreach($field['rows'] > 1 ? explode(',', $value) : (array) $value as $value)
|
||||
{
|
||||
$values[] = Api\Accounts::username($value);
|
||||
$values[] = is_numeric($value) ? Api\Accounts::username($value) : $value;
|
||||
}
|
||||
$value = implode(', ',$values);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user