From: Evan Prodromou Date: Wed, 21 Mar 2012 20:28:40 +0000 (-0400) Subject: empty array wrappers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2d3c19c2547911fcaba253bb6329b4bdfafef21d;p=quix0rs-gnu-social.git empty array wrappers --- 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); }