aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index b8e22eb8..c6763a40 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -242,8 +242,8 @@ class EntryRepository extends EntityRepository
242 ->getQuery() 242 ->getQuery()
243 ->getResult(); 243 ->getResult();
244 244
245 if (count($res) > 1) { 245 if (count($res)) {
246 return next($res); 246 return current($res);
247 } 247 }
248 248
249 return false; 249 return false;