return empty string if no condition matches just to be safe

This commit is contained in:
Alex Schroeder
2004-01-30 11:47:15 +00:00
parent 4de517d024
commit cd3ca84d4a

View File

@@ -1,4 +1,4 @@
$ModulesDescription .= '<p>$Id: portrait-support.pl,v 1.5 2004/01/28 00:50:17 as Exp $</p>';
$ModulesDescription .= '<p>$Id: portrait-support.pl,v 1.6 2004/01/30 11:47:15 as Exp $</p>';
push(@MyMacros, sub{ s/\[new(:[^]:]*)\]/"[new$1:" . TimeToText($Now) . "]"/ge });
@@ -38,6 +38,7 @@ sub PortraitSupportRule {
. ($MyColor ? "#eee" : "#fff") . '">'
. '<p><span class="new">[new]</span>' . $portrait;
}
return '';
}
*OldPortraitSupportWikiHeading = *WikiHeading;