From 83ef63bef9464bf85e3cc434b453a1d55b3a4fc6 Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Wed, 1 Dec 1999 18:41:41 +0000 Subject: Fix HTML error with fileshow. --- html/functions.php3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html') diff --git a/html/functions.php3 b/html/functions.php3 index 2e46c521..78cf32ca 100644 --- a/html/functions.php3 +++ b/html/functions.php3 @@ -161,8 +161,8 @@ function fileshow($filename,$text="",$title="") { if ( $text == "") { $text=$filename; }; $message=$title; if ( $message == "") { $message=$filename; }; - hlink("fileshow.phtml?file=" . urlencode($filename) - . "&title=" . urlencode($title), + $titlecode = ($title == "" ? "" : "&title=" . urlencode($title)); + hlink("fileshow.phtml?file=" . urlencode($filename) . $titlecode, $text, $message); } -- cgit v1.2.3