mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 20:49:08 +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);
|
return array_map([__CLASS__, __METHOD__], $id);
|
||||||
}
|
}
|
||||||
|
if(is_integer($id))
|
||||||
|
{
|
||||||
|
return '' . $id;
|
||||||
|
}
|
||||||
return substr(json_encode($id, JSON_UNESCAPED_SLASHES), 1, -1);
|
return substr(json_encode($id, JSON_UNESCAPED_SLASHES), 1, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user