From 8d6282348ca3499eef0df28278de802aedeb8a39 Mon Sep 17 00:00:00 2001
From: Timothy Allen
Date: Sat, 26 Sep 2026 14:27:45 +0200
Subject: [PATCH] Show no date for a story without one.
Such a story showed the date of the story before it, or caused a warning when it came first.
---
get_data.lib.php | 6 ++++--
tests/php/Unit/DisplayStoriesTest.php | 13 +++++++++++++
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/get_data.lib.php b/get_data.lib.php
index 4df302f..bbdde5e 100644
--- a/get_data.lib.php
+++ b/get_data.lib.php
@@ -18,6 +18,7 @@ function display_stories($id = NULL) {
$page = '';
$nolink = NULL;
$posted = FALSE;
+ $date = '';
if ($action == 'preview') {
global $file_src;
@@ -65,8 +66,9 @@ searches the title, author, date, and the text of each article.