]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Repository/EntryRepository.php
Rewrote Pocket Import
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Repository / EntryRepository.php
index b8e22eb833a4bea43150eb2c660cac900a4207ff..c6763a40caa26d81febc8083bb4c4c267f94acf3 100644 (file)
@@ -242,8 +242,8 @@ class EntryRepository extends EntityRepository
             ->getQuery()
             ->getResult();
 
-        if (count($res) > 1) {
-            return next($res);
+        if (count($res)) {
+            return current($res);
         }
 
         return false;