diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-05-18 22:29:13 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-05-18 22:29:13 +0200 |
commit | 9b1e54088051cd2d913aba49dff76acc454e1579 (patch) | |
tree | 8d1f7b55ed6ab8e4f35c106de808a9b1a9be742e /include | |
parent | 9b64301e0c4af9f7b94b31e48b499d749f91c705 (diff) | |
download | volse-hubzilla-9b1e54088051cd2d913aba49dff76acc454e1579.tar.gz volse-hubzilla-9b1e54088051cd2d913aba49dff76acc454e1579.tar.bz2 volse-hubzilla-9b1e54088051cd2d913aba49dff76acc454e1579.zip |
if block title contains $content but $content title is empty do not show an empty <h3> tag
Diffstat (limited to 'include')
-rw-r--r-- | include/comanche.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 .= '<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>'; } |