diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-05-05 14:54:03 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-05-05 14:54:03 +0200 |
commit | 89f108b45ae94cd827595461b39f869111092579 (patch) | |
tree | ad4b3a5b9bc5798d211fb210cc9fa5dad991153b /src | |
parent | d09fe4d233477d5cb9bfc613799b05a7ca14e270 (diff) | |
download | wallabag-89f108b45ae94cd827595461b39f869111092579.tar.gz wallabag-89f108b45ae94cd827595461b39f869111092579.tar.zst wallabag-89f108b45ae94cd827595461b39f869111092579.zip |
Fixed @j0k3r review
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 4 |
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 | } |