From cd3ca84d4a0403e423494facd281abb7a09d5d4e Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Fri, 30 Jan 2004 11:47:15 +0000 Subject: [PATCH] return empty string if no condition matches just to be safe --- portrait-support.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portrait-support.pl b/portrait-support.pl index 8fea9122..86d697f9 100644 --- a/portrait-support.pl +++ b/portrait-support.pl @@ -1,4 +1,4 @@ -$ModulesDescription .= '

$Id: portrait-support.pl,v 1.5 2004/01/28 00:50:17 as Exp $

'; +$ModulesDescription .= '

$Id: portrait-support.pl,v 1.6 2004/01/30 11:47:15 as Exp $

'; push(@MyMacros, sub{ s/\[new(:[^]:]*)\]/"[new$1:" . TimeToText($Now) . "]"/ge }); @@ -38,6 +38,7 @@ sub PortraitSupportRule { . ($MyColor ? "#eee" : "#fff") . '">' . '

[new]' . $portrait; } + return ''; } *OldPortraitSupportWikiHeading = *WikiHeading;