aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2018-07-05 12:15:50 +0000
committerGitHub <noreply@github.com>2018-07-05 12:15:50 +0000
commit18167b9a249b679e1226f04c0f05a7489b90d4f7 (patch)
tree7e7191a4ed794eb9043361499bdf9c704018c488 /src
parente586d65b64089fc1cc230a18c470aae3f45f91a6 (diff)
parent3fbbe0d9f1887d939fdb56733612f8ab0971deaf (diff)
downloadwallabag-18167b9a249b679e1226f04c0f05a7489b90d4f7.tar.gz
wallabag-18167b9a249b679e1226f04c0f05a7489b90d4f7.tar.zst
wallabag-18167b9a249b679e1226f04c0f05a7489b90d4f7.zip
Merge pull request #3684 from Simounet/fix/empty-image-download-error
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 }