mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
throw an exception, if calendar_bo::resource_info($uid) is called with a non-scalar parameter
This commit is contained in:
parent
66ca12e6f2
commit
2a9198eb86
@ -1017,6 +1017,8 @@ class calendar_bo
|
||||
{
|
||||
static $res_info_cache = array();
|
||||
|
||||
if (!is_scalar($uid)) throw new egw_exception_wrong_parameter(__METHOD__.'('.array2string($uid).') parameter must be scalar');
|
||||
|
||||
if (!isset($res_info_cache[$uid]))
|
||||
{
|
||||
if (is_numeric($uid))
|
||||
|
Loading…
Reference in New Issue
Block a user