]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
status and favourite are actually strings in the import so use ==
authorTristan Hill <tristan@me.uk.eu.org>
Sat, 22 Dec 2018 11:36:13 +0000 (11:36 +0000)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 27 Jan 2019 17:39:26 +0000 (18:39 +0100)
src/Wallabag/ImportBundle/Import/PocketImport.php

index d364338996a652c83684d4d44ce39d960d77364d..a9b43993f735057b7656fe301e0baf2cda7fd018 100644 (file)
@@ -206,10 +206,10 @@ class PocketImport extends AbstractImport
         $this->fetchContent($entry, $url);
 
         // 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted
-        $entry->setArchived(1 === $importedEntry['status'] || $this->markAsRead);
+        $entry->setArchived(1 == $importedEntry['status'] || $this->markAsRead);
 
         // 0 or 1 - 1 If the item is starred
-        $entry->setStarred(1 === $importedEntry['favorite']);
+        $entry->setStarred(1 == $importedEntry['favorite']);
 
         $title = 'Untitled';
         if (isset($importedEntry['resolved_title']) && '' !== $importedEntry['resolved_title']) {