aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSimounet <contact@simounet.net>2018-06-03 22:52:48 +0200
committerSimounet <contact@simounet.net>2018-07-05 11:40:51 +0200
commit3fbbe0d9f1887d939fdb56733612f8ab0971deaf (patch)
tree7e7191a4ed794eb9043361499bdf9c704018c488 /src
parente586d65b64089fc1cc230a18c470aae3f45f91a6 (diff)
downloadwallabag-3fbbe0d9f1887d939fdb56733612f8ab0971deaf.tar.gz
wallabag-3fbbe0d9f1887d939fdb56733612f8ab0971deaf.tar.zst
wallabag-3fbbe0d9f1887d939fdb56733612f8ab0971deaf.zip
Fix image downloading on null image path
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Helper/DownloadImages.php4
1 files changed, 4 insertions, 0 deletions
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
85 */ 85 */
86 public function processSingleImage($entryId, $imagePath, $url, $relativePath = null) 86 public function processSingleImage($entryId, $imagePath, $url, $relativePath = null)
87 { 87 {
88 if (null === $imagePath) {
89 return false;
90 }
91
88 if (null === $relativePath) { 92 if (null === $relativePath) {
89 $relativePath = $this->getRelativePath($entryId); 93 $relativePath = $this->getRelativePath($entryId);
90 } 94 }