aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorTristan Hill <tristan@me.uk.eu.org>2018-12-22 11:36:13 +0000
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-01-27 18:39:26 +0100
commita2e60dd39382d19642346b3848d22ce1d28d4cf3 (patch)
tree8c94e2ef43b8698ec99b680fabe5bf58a4a72f62 /src
parentb992522d857686f445e1d4c330d22820db0c0c61 (diff)
downloadwallabag-a2e60dd39382d19642346b3848d22ce1d28d4cf3.tar.gz
wallabag-a2e60dd39382d19642346b3848d22ce1d28d4cf3.tar.zst
wallabag-a2e60dd39382d19642346b3848d22ce1d28d4cf3.zip
status and favourite are actually strings in the import so use ==
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/ImportBundle/Import/PocketImport.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php
index d3643389..a9b43993 100644
--- a/src/Wallabag/ImportBundle/Import/PocketImport.php
+++ b/src/Wallabag/ImportBundle/Import/PocketImport.php
@@ -206,10 +206,10 @@ class PocketImport extends AbstractImport
206 $this->fetchContent($entry, $url); 206 $this->fetchContent($entry, $url);
207 207
208 // 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted 208 // 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted
209 $entry->setArchived(1 === $importedEntry['status'] || $this->markAsRead); 209 $entry->setArchived(1 == $importedEntry['status'] || $this->markAsRead);
210 210
211 // 0 or 1 - 1 If the item is starred 211 // 0 or 1 - 1 If the item is starred
212 $entry->setStarred(1 === $importedEntry['favorite']); 212 $entry->setStarred(1 == $importedEntry['favorite']);
213 213
214 $title = 'Untitled'; 214 $title = 'Untitled';
215 if (isset($importedEntry['resolved_title']) && '' !== $importedEntry['resolved_title']) { 215 if (isset($importedEntry['resolved_title']) && '' !== $importedEntry['resolved_title']) {