aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2019-02-07 18:01:15 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-02-07 18:01:15 +0100
commit18460b2d79125d0252e7fe71e1ae84d5ef4f040a (patch)
tree41a6d649a66c8db1dcb3296ddfb4f35405467961 /src/Wallabag/ImportBundle/Import
parent2e5b3fa361098498a9e42a65396a27e1eb487fba (diff)
parent47e47841105a34c852744e207b4a0ea9e879ec49 (diff)
downloadwallabag-18460b2d79125d0252e7fe71e1ae84d5ef4f040a.tar.gz
wallabag-18460b2d79125d0252e7fe71e1ae84d5ef4f040a.tar.zst
wallabag-18460b2d79125d0252e7fe71e1ae84d5ef4f040a.zip
Merge remote-tracking branch 'origin/master' into 2.4
Diffstat (limited to 'src/Wallabag/ImportBundle/Import')
-rw-r--r--src/Wallabag/ImportBundle/Import/PocketImport.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/ImportBundle/Import/PocketImport.php b/src/Wallabag/ImportBundle/Import/PocketImport.php
index f2e59183..a39d8156 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->updateArchived(1 === $importedEntry['status'] || $this->markAsRead); 209 $entry->updateArchived(1 === (int) $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 === (int) $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']) {