1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Fixed @j0k3r review

This commit is contained in:
Nicolas Lœuillet 2017-05-05 14:54:03 +02:00
parent d09fe4d233
commit 89f108b45a
No known key found for this signature in database
GPG key ID: BDC1EFB5CA0145F2
2 changed files with 4 additions and 6 deletions

View file

@ -403,12 +403,10 @@ class EntryRepository extends EntityRepository
*/
public function findAllByUrlAndUserId($url, $userId)
{
$res = $this->createQueryBuilder('e')
return $this->createQueryBuilder('e')
->where('e.url = :url')->setParameter('url', urldecode($url))
->andWhere('e.user = :user_id')->setParameter('user_id', $userId)
->getQuery()
->getResult();
return $res;
}
}