status and favourite are actually strings in the import so use ==

This commit is contained in:
Tristan Hill 2018-12-22 11:36:13 +00:00 committed by Jeremy Benoist
parent b992522d85
commit a2e60dd393
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C

View File

@ -206,10 +206,10 @@ class PocketImport extends AbstractImport
$this->fetchContent($entry, $url); $this->fetchContent($entry, $url);
// 0, 1, 2 - 1 if the item is archived - 2 if the item should be deleted // 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 // 0 or 1 - 1 If the item is starred
$entry->setStarred(1 === $importedEntry['favorite']); $entry->setStarred(1 == $importedEntry['favorite']);
$title = 'Untitled'; $title = 'Untitled';
if (isset($importedEntry['resolved_title']) && '' !== $importedEntry['resolved_title']) { if (isset($importedEntry['resolved_title']) && '' !== $importedEntry['resolved_title']) {