From 987fd76c89d1e6c025f1e6923c4343f8d7dbf238 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Fri, 7 Nov 2003 16:05:01 +0000 Subject: Bug 219475: The check for null db entries in process_bug.cgi is wrong; patch by Chuck Duvall ; r=bbaetz; a=justdave. --- process_bug.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'process_bug.cgi') 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})) { -- cgit v1.2.3-24-g4f1b