diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-06-20 06:43:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-20 06:43:59 +0200 |
commit | 604cca1f4247f9f905e57b9276cf2543cfa41a5d (patch) | |
tree | 3b8f45d58c30ffb8405a5e7942522e40c626a48c /src | |
parent | 7e271553fe287f046a9a7c2143e44364365fa403 (diff) | |
parent | 41d45c6122f61e01a370233d26a2633836094d5c (diff) | |
download | wallabag-604cca1f4247f9f905e57b9276cf2543cfa41a5d.tar.gz wallabag-604cca1f4247f9f905e57b9276cf2543cfa41a5d.tar.zst wallabag-604cca1f4247f9f905e57b9276cf2543cfa41a5d.zip |
Merge pull request #3215 from wallabag/fix-3192
Empty preview pictures and language return null
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/ContentProxy.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index 0c971863..51bb2ca2 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php | |||
@@ -120,12 +120,12 @@ class ContentProxy | |||
120 | 120 | ||
121 | $this->validateAndSetLanguage( | 121 | $this->validateAndSetLanguage( |
122 | $entry, | 122 | $entry, |
123 | isset($content['language']) ? $content['language'] : '' | 123 | isset($content['language']) ? $content['language'] : null |
124 | ); | 124 | ); |
125 | 125 | ||
126 | $this->validateAndSetPreviewPicture( | 126 | $this->validateAndSetPreviewPicture( |
127 | $entry, | 127 | $entry, |
128 | isset($content['open_graph']['og_image']) ? $content['open_graph']['og_image'] : '' | 128 | isset($content['open_graph']['og_image']) ? $content['open_graph']['og_image'] : null |
129 | ); | 129 | ); |
130 | 130 | ||
131 | // if content is an image, define it as a preview too | 131 | // if content is an image, define it as a preview too |