summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2003-11-07 17:05:01 +0100
committerjocuri%softhome.net <>2003-11-07 17:05:01 +0100
commit987fd76c89d1e6c025f1e6923c4343f8d7dbf238 (patch)
treece3fbbea4346588e93eba6a91ed7cee0b6090965 /process_bug.cgi
parent5ea2e6bed5b9550a3e6e6959f06869a549ee0f43 (diff)
downloadbugzilla-987fd76c89d1e6c025f1e6923c4343f8d7dbf238.tar.gz
bugzilla-987fd76c89d1e6c025f1e6923c4343f8d7dbf238.tar.xz
Bug 219475: The check for null db entries in process_bug.cgi is wrong; patch by Chuck Duvall <caduvall@glue.umd.edu>; r=bbaetz; a=justdave.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index ffad17b70..4fd9cc746 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -1120,7 +1120,7 @@ foreach my $id (@idlist) {
my $i = 0;
foreach my $col (@::log_columns) {
# Consider NULL db entries to be equivalent to the empty string
- $oldvalues[$i] ||= '';
+ $oldvalues[$i] = '' unless defined($oldvalues[$i]);
$oldhash{$col} = $oldvalues[$i];
if (exists $::FORM{$col}) {
if (!CheckCanChangeField($col, $id, $oldvalues[$i], $::FORM{$col})) {