From 09b80a6e90aa6313704577d7bd6f0df7c803ba9b Mon Sep 17 00:00:00 2001
From: Evan Prodromou <evan@status.net>
Date: Wed, 21 Mar 2012 16:28:40 -0400
Subject: [PATCH] empty array wrappers

---
 lib/groupnoticestream.php   | 2 +-
 lib/profilenoticestream.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/groupnoticestream.php b/lib/groupnoticestream.php
index c75d621419..65db308df5 100644
--- a/lib/groupnoticestream.php
+++ b/lib/groupnoticestream.php
@@ -74,7 +74,7 @@ class GroupNoticeStream extends ScopingNoticeStream
     function getNotices($offset, $limit, $sinceId = null, $maxId = null)
     {
         if ($this->impossibleStream()) {
-            return array();
+            return new ArrayWrapper(array());
         } else {
             return parent::getNotices($offset, $limit, $sinceId, $maxId);
         }
diff --git a/lib/profilenoticestream.php b/lib/profilenoticestream.php
index cd89769ec2..1fde1c6025 100644
--- a/lib/profilenoticestream.php
+++ b/lib/profilenoticestream.php
@@ -74,7 +74,7 @@ class ProfileNoticeStream extends ScopingNoticeStream
     function getNotices($offset, $limit, $sinceId = null, $maxId = null)
     {
         if ($this->impossibleStream()) {
-            return array();
+            return new ArrayWrapper(array());
         } else {
             return parent::getNotices($offset, $limit, $sinceId, $maxId);
         }
-- 
2.39.5