forked from GNUsocial/gnu-social
empty array wrappers
This commit is contained in:
parent
0f0ddbe0c3
commit
09b80a6e90
@ -74,7 +74,7 @@ class GroupNoticeStream extends ScopingNoticeStream
|
|||||||
function getNotices($offset, $limit, $sinceId = null, $maxId = null)
|
function getNotices($offset, $limit, $sinceId = null, $maxId = null)
|
||||||
{
|
{
|
||||||
if ($this->impossibleStream()) {
|
if ($this->impossibleStream()) {
|
||||||
return array();
|
return new ArrayWrapper(array());
|
||||||
} else {
|
} else {
|
||||||
return parent::getNotices($offset, $limit, $sinceId, $maxId);
|
return parent::getNotices($offset, $limit, $sinceId, $maxId);
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ class ProfileNoticeStream extends ScopingNoticeStream
|
|||||||
function getNotices($offset, $limit, $sinceId = null, $maxId = null)
|
function getNotices($offset, $limit, $sinceId = null, $maxId = null)
|
||||||
{
|
{
|
||||||
if ($this->impossibleStream()) {
|
if ($this->impossibleStream()) {
|
||||||
return array();
|
return new ArrayWrapper(array());
|
||||||
} else {
|
} else {
|
||||||
return parent::getNotices($offset, $limit, $sinceId, $maxId);
|
return parent::getNotices($offset, $limit, $sinceId, $maxId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user