aboutsummaryrefslogtreecommitdiffstats
path: root/english/template
diff options
context:
space:
mode:
authorThomas Lange <lange@debian.org>2023-07-23 13:46:40 +0200
committerThomas Lange <lange@debian.org>2023-07-23 13:46:40 +0200
commit92a672983124eeb92c3bba7ab8cfd9d834bc10a4 (patch)
treeeb792a60eb07f15ff56081c8bb5c64602e7e26bc /english/template
parent70efe53c10bc915562a77c944385c6f51d292e71 (diff)
skip lines without valid content (e.g. empty lines)
Diffstat (limited to 'english/template')
-rw-r--r--english/template/debian/recent_list.wml1
1 files changed, 1 insertions, 0 deletions
diff --git a/english/template/debian/recent_list.wml b/english/template/debian/recent_list.wml
index 644daa563dc..aadccaf45f2 100644
--- a/english/template/debian/recent_list.wml
+++ b/english/template/debian/recent_list.wml
@@ -49,6 +49,7 @@ sub get_top_news() {
# read list of homepagenews
foreach my $id (<DATAFILE>) {
chomp $id;
+ next unless /^\d+$/;
print get_recent_list('News/2y', '1', '$(ENGLISHDIR)', 'bydate frontpage', $id);
}
close DATAFILE;

© 2014-2024 Faster IT GmbH | imprint | privacy policy