From 9b1e54088051cd2d913aba49dff76acc454e1579 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 18 May 2015 22:29:13 +0200 Subject: if block title contains $content but $content title is empty do not show an empty

tag --- include/comanche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/comanche.php b/include/comanche.php index cca7cb0f6..93cbd8b12 100644 --- a/include/comanche.php +++ b/include/comanche.php @@ -174,7 +174,7 @@ function comanche_block($s, $class = '') { $o .= '

' . $r[0]['title'] . '

'; } - 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 .= '

' . get_app()->data['webpage'][0]['title'] . '

'; } -- cgit v1.2.3