Commit b7132439 authored by Nigel McNie's avatar Nigel McNie
Browse files

Don't output an empty image tag if there is no icon for an RSS feed.

parent b664dcc6
......@@ -316,6 +316,10 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
private static function make_feed_image_tag($image) {
$result = '';
if (!$image['url']) {
return '';
}
if (is_string($image)) {
// Easy!
return '<img src="' . hsc($image) . '">';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment