diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 6a997954a5068509117f7099a58fb5ae86fafbcf..a7d2432831021709c50f176a43f36b0faf99ebe9 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -1030,7 +1030,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { global $conf; $isImage = false; - if ( is_null($title) ) { + if ( is_null($title) || trim($title)=='') { if ($conf['useheading'] && $id) { $heading = p_get_first_heading($id,true); if ($heading) {