X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FImportBundle%2FImport%2FInstapaperImport.php;fp=src%2FWallabag%2FImportBundle%2FImport%2FInstapaperImport.php;h=cf4c785ce8dca325d3ab0b93a07a3b7e09b484bc;hb=c7ea9b41f32f222fef6a59734ea0b1176bfa1f41;hp=356acf230207e75b571fb1d3b0e62ff926e6b5f3;hpb=ff1a5362f7254d686864ea53994da6c517b3d3e8;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/ImportBundle/Import/InstapaperImport.php b/src/Wallabag/ImportBundle/Import/InstapaperImport.php index 356acf23..cf4c785c 100644 --- a/src/Wallabag/ImportBundle/Import/InstapaperImport.php +++ b/src/Wallabag/ImportBundle/Import/InstapaperImport.php @@ -80,6 +80,12 @@ class InstapaperImport extends AbstractImport } fclose($handle); + if (empty($entries)) { + $this->logger->error('InstapaperImport: no entries in imported file'); + + return false; + } + if ($this->producer) { $this->parseEntriesForProducer($entries);