if block title contains $content but $content title is empty do not show an empty <h3> tag

This commit is contained in:
Mario Vavti 2015-05-18 22:29:13 +02:00
parent 9b64301e0c
commit 9b1e540880

View File

@ -174,7 +174,7 @@ function comanche_block($s, $class = '') {
$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>';
}