mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Api: Fix encodeId() failed with integers
This commit is contained in:
parent
96c66eeaf8
commit
84dd9284e2
@ -493,6 +493,10 @@ class Storage
|
||||
{
|
||||
return array_map([__CLASS__, __METHOD__], $id);
|
||||
}
|
||||
if(is_integer($id))
|
||||
{
|
||||
return '' . $id;
|
||||
}
|
||||
return substr(json_encode($id, JSON_UNESCAPED_SLASHES), 1, -1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user