From: jocuri%softhome.net <> Date: Fri, 7 Nov 2003 16:05:01 +0000 (+0000) Subject: Bug 219475: The check for null db entries in process_bug.cgi is wrong; patch by Chuck... X-Git-Tag: bugzilla-2.17.6~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=987fd76c89d1e6c025f1e6923c4343f8d7dbf238;p=thirdparty%2Fbugzilla.git Bug 219475: The check for null db entries in process_bug.cgi is wrong; patch by Chuck Duvall ; r=bbaetz; a=justdave. --- diff --git a/process_bug.cgi b/process_bug.cgi index ffad17b707..4fd9cc7464 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})) {