aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 2e03fa19..6972e974 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -403,12 +403,10 @@ class EntryRepository extends EntityRepository
403 */ 403 */
404 public function findAllByUrlAndUserId($url, $userId) 404 public function findAllByUrlAndUserId($url, $userId)
405 { 405 {
406 $res = $this->createQueryBuilder('e') 406 return $this->createQueryBuilder('e')
407 ->where('e.url = :url')->setParameter('url', urldecode($url)) 407 ->where('e.url = :url')->setParameter('url', urldecode($url))
408 ->andWhere('e.user = :user_id')->setParameter('user_id', $userId) 408 ->andWhere('e.user = :user_id')->setParameter('user_id', $userId)
409 ->getQuery() 409 ->getQuery()
410 ->getResult(); 410 ->getResult();
411
412 return $res;
413 } 411 }
414} 412}