summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-08-28 06:10:46 -0700
committerEvan Prodromou <evan@status.net>2009-08-28 06:10:46 -0700
commit900943f027e81145c7fd303c625c8ec4b51b00d6 (patch)
tree39b2ec6152ebc2dd8bfe922ebe02e9c42428dd9b
parentca30cc2d594acabefeafa61edb61342b32752bc1 (diff)
parente277c856d65885a487b4d7f090a10cf817da836a (diff)
Merge branch 'testing' of git@gitorious.org:laconica/mainline into testing
-rw-r--r--classes/Notice.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 28d5b8ddf..89afe9d1d 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -732,6 +732,10 @@ class Notice extends Memcached_DataObject
return new ArrayWrapper($notices);
} else {
$notice = new Notice();
+ if (empty($ids)) {
+ //if no IDs requested, just return the notice object
+ return $notice;
+ }
$notice->whereAdd('id in (' . implode(', ', $ids) . ')');
$notice->orderBy('id DESC');