move str_replace inside if clause

This commit is contained in:
Mario Vavti 2018-09-05 14:44:06 +02:00
parent 4f82428a20
commit ea381d9180

View File

@ -53,9 +53,9 @@ class Cover_photo {
$subtitle = str_replace('@','@',$channel['xchan_addr']);
$c = get_cover_photo($channel_id,'html');
$c = str_replace('src=', 'data-src=', $c);
if($c) {
$c = str_replace('src=', 'data-src=', $c);
$photo_html = (($style) ? str_replace('alt=',' style="' . $style . '" alt=',$c) : $c);
$o = replace_macros(get_markup_template('cover_photo_widget.tpl'),array(