]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
empty array wrappers
authorEvan Prodromou <evan@status.net>
Wed, 21 Mar 2012 20:28:40 +0000 (16:28 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 21 Mar 2012 20:28:53 +0000 (16:28 -0400)
lib/groupnoticestream.php
lib/profilenoticestream.php

index c75d62141950f33a2be0bcd58a7d4bbe4f1c7835..65db308df59f44ee8a9db71efbb3ad0c1a49d21d 100644 (file)
@@ -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);
         }
index cd89769ec27a7769926fb0e8d9f5db420f70a5c4..1fde1c6025e2408191284f5ae6b4be93387aa8e5 100644 (file)
@@ -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);
         }