]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/ImportBundle/Import/PocketImport.php
Change the way to check for an existing entry
[github/wallabag/wallabag.git] / src / Wallabag / ImportBundle / Import / PocketImport.php
index dd1c34abcba9179486c5e55e811289df00a326a8..ef8f9eb57bd2ed35542eefa6c73d713330d000ec 100644 (file)
@@ -117,9 +117,9 @@ class PocketImport implements ImportInterface
 
             $existingEntry = $this->em
                 ->getRepository('WallabagCoreBundle:Entry')
-                ->findOneByUrlAndUserId($url, $this->user->getId());
+                ->existByUrlAndUserId($url, $this->user->getId());
 
-            if (count($existingEntry) > 0) {
+            if (false !== $existingEntry) {
                 ++$this->skippedEntries;
                 continue;
             }