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);
}
function impossibleStream()
{
if ($this->group->force_scope &&
- (empty($this->userProfile) || !$this->userProfile->isMember($group))) {
+ (empty($this->userProfile) || !$this->userProfile->isMember($this->group))) {
return true;
}