$notices and $notice is not the same, silly!
This commit is contained in:
parent
64fbc93217
commit
76396041e2
|
@ -1230,7 +1230,7 @@ class Notice extends Managed_DataObject
|
||||||
}
|
}
|
||||||
|
|
||||||
$stream = new ConversationNoticeStream($this->conversation);
|
$stream = new ConversationNoticeStream($this->conversation);
|
||||||
$notices = $stream->getNotices(/*offset*/ 1, /*limit*/ 1);
|
$notice = $stream->getNotices(/*offset*/ 1, /*limit*/ 1);
|
||||||
|
|
||||||
// if our "offset 1, limit 1" query got a result, return true else false
|
// if our "offset 1, limit 1" query got a result, return true else false
|
||||||
return $notice->N > 0;
|
return $notice->N > 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user