summaryrefslogtreecommitdiffstats
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
parent8829ae5f033999f20009364226a9239a1a706b68 (diff)
downloadbugzilla-80e66f4380525ec512995544fc13e01e88b55344.tar.gz
bugzilla-80e66f4380525ec512995544fc13e01e88b55344.tar.xz
Patch by holger@holger.om.org (Holger Schurig) -- several cleanups.
-rw-r--r--CGI.pl6
-rwxr-xr-xbuglist.cgi3
-rwxr-xr-xquery.cgi2
-rwxr-xr-xreports.cgi3
4 files changed, 7 insertions, 7 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\">";
}
diff --git a/buglist.cgi b/buglist.cgi
index ee4aa39fd..8d3182200 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -546,14 +546,13 @@ while (@row = FetchSQLData()) {
next;
}
my $value = shift @row;
- my $nowrap = "";
if ($::needquote{$c}) {
$value = html_quote($value);
} else {
$value = "<nobr>$value</nobr>";
}
- pnl "<td $nowrap>$value";
+ pnl "<td>$value";
}
if ($dotweak) {
my $value = shift @row;
diff --git a/query.cgi b/query.cgi
index bee45e9f4..5f8d36214 100755
--- a/query.cgi
+++ b/query.cgi
@@ -57,7 +57,7 @@ if (!defined $::buffer || $::buffer eq "") {
$::buffer = $::COOKIE{"DEFAULTQUERY"};
}
-my %default;
+use vars qw(%default);
my %type;
foreach my $name ("bug_status", "resolution", "assigned_to", "rep_platform",
diff --git a/reports.cgi b/reports.cgi
index c7a22fcd3..21cfd780e 100755
--- a/reports.cgi
+++ b/reports.cgi
@@ -261,6 +261,9 @@ FIN
# start painting report #
#########################
+ $bugs_status{'NEW'} ||= '0';
+ $bugs_status{'ASSIGNED'} ||= '0';
+ $bugs_status{'REOPENED'} ||= '0';
print <<FIN;
<h1>$quip</h1>
<table border=1 cellpadding=5>