Merge pull request #4878 from wallabag/fix-hash-query

This commit is contained in:
Jérémy Benoist
2021-01-04 06:51:12 +01:00
committed by GitHub

View File

@ -378,7 +378,9 @@ class EntryRepository extends EntityRepository
{
return $this->createQueryBuilder('e')
->where('e.hashedUrl = :empty')->setParameter('empty', '')
->orWhere('e.hashedUrl is null')
->andWhere('e.user = :user_id')->setParameter('user_id', $userId)
->andWhere('e.url is not null')
->getQuery()
->getResult();
}