Fix: StreamSuppressedQuery with limit = 2 throws query not executed exception

This commit is contained in:
buddh4 2018-12-11 12:52:44 +01:00
parent a5700636b0
commit 3515c6c9c6
2 changed files with 4 additions and 0 deletions

View File

@ -1,7 +1,10 @@
HumHub Change Log
=================
1.3.9
---------------------------
- Fix: StreamSuppressedQuery with limit = 2 throws query not executed exception
1.3.8 (December 10, 2018)
---------------------------

View File

@ -87,6 +87,7 @@ class StreamSuppressQuery extends StreamQuery
{
// Only suppress on 3 or more contents to deliever
if ($this->limit < 3 || $this->isSingleContentQuery()) {
$this->isQueryExecuted = true;
return parent::all();
}