]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 219475: The check for null db entries in process_bug.cgi is wrong; patch by Chuck...
authorjocuri%softhome.net <>
Fri, 7 Nov 2003 16:05:01 +0000 (16:05 +0000)
committerjocuri%softhome.net <>
Fri, 7 Nov 2003 16:05:01 +0000 (16:05 +0000)
process_bug.cgi

index ffad17b7076d2c25feb8a6c7e36874548cad5000..4fd9cc74641117ed8b346902a95c24b982166271 100755 (executable)
@@ -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})) {