mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Avoid type mismatch causing 'Not an integer'
This commit is contained in:
parent
a81cdf73be
commit
2d26d595b6
@ -498,7 +498,7 @@ class Accounts
|
||||
*/
|
||||
static function username($account_id=null)
|
||||
{
|
||||
if ($account_id && !($account = self::cache_read($account_id)))
|
||||
if ($account_id && !($account = self::cache_read((int)$account_id)))
|
||||
{
|
||||
return '#'.$account_id;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user