throw an exception, if calendar_bo::resource_info($uid) is called with a non-scalar parameter

This commit is contained in:
Ralf Becker 2011-03-28 12:04:34 +00:00
parent 66ca12e6f2
commit 2a9198eb86

View File

@ -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))