nieuws: fix block replacement of variable contents
[minimedit.git] / nieuws / index.php
index f74c632bd762ea06dab685c70ce9c41a6f4733fa..ff433d5d7b80001921a3d360b66a4796f98f4041 100644 (file)
@@ -15,6 +15,9 @@ if ($page and !is_numeric($page)) {
        if ($Article->dateparts) {
                $Place[1] = ' <small class="date">'.$Article->date.'</small>';
        }
+       else {
+               $Place[1] = '';
+       }
        print preg_replace('{(?<=<h2>)(.*?)(?=</h2>)}', ($edit ?: '\1').' [[1]]', $Article->raw);
        if ($User->admin("edit $Page$Args")) {
                $taglist = [];