diff options
-rw-r--r-- | inc/indexer.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/indexer.php b/inc/indexer.php index d2a38e4a7..03008cd71 100644 --- a/inc/indexer.php +++ b/inc/indexer.php @@ -860,6 +860,8 @@ class Doku_Indexer { $fh = @fopen($fn.'.tmp', 'w'); if (!$fh) return false; fwrite($fh, join("\n", $lines)); + if (!empty($lines)) + fwrite($fh, "\n"); fclose($fh); if (isset($conf['fperm'])) chmod($fn.'.tmp', $conf['fperm']); |