forked from wallabag/wallabag
Change the way to check for an existing entry
The repository method return the entry found or false if nothing exists.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user