From: Michael J. Rubinsky Date: Mon, 21 Jun 2010 23:01:31 +0000 (-0400) Subject: throw exception if no object requested X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=478d60fbd4040886f5564e36beaf0ff3fad905c0;p=horde.git throw exception if no object requested --- diff --git a/content/lib/Objects/Manager.php b/content/lib/Objects/Manager.php index 6d54dc527..e9add4c97 100644 --- a/content/lib/Objects/Manager.php +++ b/content/lib/Objects/Manager.php @@ -61,6 +61,9 @@ class Content_Objects_Manager if (!is_array($objects)) { $objects = array($objects); } + if (!count($objects)) { + throw new InvalidArgumentException('No object requested'); + } $params = $objects; $params[] = $type;