From 2d3c19c2547911fcaba253bb6329b4bdfafef21d Mon Sep 17 00:00:00 2001 From: Evan Prodromou 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.2