From bcf9625d073867b46db5eaa83f8d2a1f395cbe65 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Thu, 11 Jul 2002 18:46:08 +0000 Subject: Bug 156844 - 'use of uninitialized value in string eq' warning r=jouni x2 --- process_bug.cgi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/process_bug.cgi b/process_bug.cgi index afed412a3..f061d4455 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -930,6 +930,8 @@ foreach my $id (@idlist) { my %oldhash; my $i = 0; foreach my $col (@::log_columns) { + # Consider NULL db entries to be equivalent to the empty string + $oldvalues[$i] ||= ''; $oldhash{$col} = $oldvalues[$i]; if (exists $::FORM{$col}) { CheckCanChangeField($col, $id, $oldvalues[$i], $::FORM{$col}); -- cgit v1.2.3-24-g4f1b