aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-05-05 14:54:03 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-05-05 14:54:03 +0200
commit89f108b45ae94cd827595461b39f869111092579 (patch)
treead4b3a5b9bc5798d211fb210cc9fa5dad991153b /src/Wallabag/CoreBundle
parentd09fe4d233477d5cb9bfc613799b05a7ca14e270 (diff)
downloadwallabag-89f108b45ae94cd827595461b39f869111092579.tar.gz
wallabag-89f108b45ae94cd827595461b39f869111092579.tar.zst
wallabag-89f108b45ae94cd827595461b39f869111092579.zip
Fixed @j0k3r review
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}