if block title contains $content but $content title is empty do not show an empty <h3> tag
This commit is contained in:
parent
9b64301e0c
commit
9b1e540880
@ -174,7 +174,7 @@ function comanche_block($s, $class = '') {
|
|||||||
$o .= '<h3>' . $r[0]['title'] . '</h3>';
|
$o .= '<h3>' . $r[0]['title'] . '</h3>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($r[0]['title'] && trim($r[0]['title']) === '$content') {
|
if($r[0]['title'] && trim($r[0]['title']) === '$content' && get_app()->data['webpage'][0]['title']) {
|
||||||
$o .= '<h3>' . get_app()->data['webpage'][0]['title'] . '</h3>';
|
$o .= '<h3>' . get_app()->data['webpage'][0]['title'] . '</h3>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user