From 3fbbe0d9f1887d939fdb56733612f8ab0971deaf Mon Sep 17 00:00:00 2001 From: Simounet Date: Sun, 3 Jun 2018 22:52:48 +0200 Subject: Fix image downloading on null image path --- src/Wallabag/CoreBundle/Helper/DownloadImages.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Wallabag/CoreBundle/Helper/DownloadImages.php') diff --git a/src/Wallabag/CoreBundle/Helper/DownloadImages.php b/src/Wallabag/CoreBundle/Helper/DownloadImages.php index 9c9452dd..f91cdf5e 100644 --- a/src/Wallabag/CoreBundle/Helper/DownloadImages.php +++ b/src/Wallabag/CoreBundle/Helper/DownloadImages.php @@ -85,6 +85,10 @@ class DownloadImages */ public function processSingleImage($entryId, $imagePath, $url, $relativePath = null) { + if (null === $imagePath) { + return false; + } + if (null === $relativePath) { $relativePath = $this->getRelativePath($entryId); } -- cgit v1.2.3