aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-06-12 16:46:33 +0200
committerThomas Citharel <tcit@tcit.fr>2017-06-12 16:46:33 +0200
commit41d45c6122f61e01a370233d26a2633836094d5c (patch)
tree9542e99341091dd2ed49873bf0be617a876461f5 /src
parent977ac0a1d6c5e42d0bb2cbb13eac6213fefbb175 (diff)
downloadwallabag-41d45c6122f61e01a370233d26a2633836094d5c.tar.gz
wallabag-41d45c6122f61e01a370233d26a2633836094d5c.tar.zst
wallabag-41d45c6122f61e01a370233d26a2633836094d5c.zip
Fix empty language and preview pics
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Helper/ContentProxy.php4
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