summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 6a997954a..a7d243283 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) {