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); }