diff --git a/src/jobs/PocketImportator.php b/src/jobs/PocketImportator.php index 4698ea6a..bf1adc59 100644 --- a/src/jobs/PocketImportator.php +++ b/src/jobs/PocketImportator.php @@ -147,7 +147,7 @@ public function importPocketItems(models\User $user, array $items, array $option foreach ($items as $item) { /** @var string */ - $given_url = $item['given_url']; + $given_url = $item['given_url'] ?? ''; $given_url = \SpiderBits\Url::sanitize($given_url); if (!\SpiderBits\Url::isValid($given_url)) { @@ -190,7 +190,7 @@ public function importPocketItems(models\User $user, array $items, array $option } /** @var string */ - $resolved_url = $item['resolved_url']; + $resolved_url = $item['resolved_url'] ?? ''; $resolved_url = \SpiderBits\Url::sanitize($resolved_url); if (isset($link_ids_by_urls[$given_url])) {