projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c5277
)
throw exception if no object requested
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Mon, 21 Jun 2010 23:01:31 +0000
(19:01 -0400)
committer
Michael J. Rubinsky
<mrubinsk@horde.org>
Mon, 21 Jun 2010 23:02:18 +0000
(19:02 -0400)
content/lib/Objects/Manager.php
patch
|
blob
|
history
diff --git
a/content/lib/Objects/Manager.php
b/content/lib/Objects/Manager.php
index
6d54dc5
..
e9add4c
100644
(file)
--- 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;