aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2019-01-28 11:34:37 +0100
committerGitHub <noreply@github.com>2019-01-28 11:34:37 +0100
commit755753e3efff7acec5222b44df7a59790dc0a6b6 (patch)
treede865ee5443ce1a9f516b3161d29f2ff6a5f118a /src
parentb992522d857686f445e1d4c330d22820db0c0c61 (diff)
parent8d082488e9e62914d79c179d376d1a0529183c49 (diff)
downloadwallabag-755753e3efff7acec5222b44df7a59790dc0a6b6.tar.gz
wallabag-755753e3efff7acec5222b44df7a59790dc0a6b6.tar.zst
wallabag-755753e3efff7acec5222b44df7a59790dc0a6b6.zip
Merge pull request #3819 from stan3/pocket-import
Fix read & starred status in Pocket import
Diffstat (limited to 'src')
-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 d3643389..5737928d 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 === (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']) {