aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
index fe795d42..19fcbfbf 100644
--- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php
+++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php
@@ -65,6 +65,14 @@ class ContentProxy
65 // so we'll be able to refetch it in the future 65 // so we'll be able to refetch it in the future
66 $content['url'] = !empty($content['url']) ? $content['url'] : $url; 66 $content['url'] = !empty($content['url']) ? $content['url'] : $url;
67 67
68 // In one case (at least in tests), url is empty here
69 // so we set it using $url provided in the updateEntry call.
70 // Not sure what are the other possible cases where this property is empty
71 if (empty($entry->getUrl()) && !empty($url))
72 {
73 $entry->setUrl($url);
74 }
75
68 $this->stockEntry($entry, $content); 76 $this->stockEntry($entry, $content);
69 } 77 }
70 78