diff options
-rw-r--r-- | lib/Db/CacheDocumentsRequest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Db/CacheDocumentsRequest.php b/lib/Db/CacheDocumentsRequest.php index 6c7f7b68..d71a113f 100644 --- a/lib/Db/CacheDocumentsRequest.php +++ b/lib/Db/CacheDocumentsRequest.php @@ -150,7 +150,8 @@ class CacheDocumentsRequest extends CacheDocumentsRequestBuilder { $qb = $this->getCacheDocumentsSelectSql(); $this->limitToDBFieldEmpty($qb, 'local_copy'); $this->limitToCaching($qb, self::CACHE_TTL); - + $this->limitToDBFieldInt($qb, 'error', 0); + $documents = []; $cursor = $qb->execute(); while ($data = $cursor->fetch()) { |