summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-09-24 04:19:01 +0200
committerterry%mozilla.org <>1999-09-24 04:19:01 +0200
commit80e66f4380525ec512995544fc13e01e88b55344 (patch)
tree1c923ef73a5951eef6272b13526cbe4a316d4af7 /CGI.pl
parent8829ae5f033999f20009364226a9239a1a706b68 (diff)
downloadbugzilla-80e66f4380525ec512995544fc13e01e88b55344.tar.gz
bugzilla-80e66f4380525ec512995544fc13e01e88b55344.tar.xz
Patch by holger@holger.om.org (Holger Schurig) -- several cleanups.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl6
1 files changed, 2 insertions, 4 deletions
diff --git a/CGI.pl b/CGI.pl
index c12ce8e5e..0d9762b22 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -29,11 +29,9 @@ require 'globals.pl';
sub GeneratePersonInput {
my ($field, $required, $def_value, $extraJavaScript) = (@_);
- if (!defined $extraJavaScript) {
- $extraJavaScript = "";
- }
+ $extraJavaScript ||= "";
if ($extraJavaScript ne "") {
- $extraJavaScript = "onChange=\" $extraJavaScript \"";
+ $extraJavaScript = "onChange=\"$extraJavaScript\"";
}
return "<INPUT NAME=\"$field\" SIZE=32 $extraJavaScript VALUE=\"$def_value\">";
}