]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 156844 - 'use of uninitialized value in string eq' warning
authorbbaetz%student.usyd.edu.au <>
Thu, 11 Jul 2002 18:46:08 +0000 (18:46 +0000)
committerbbaetz%student.usyd.edu.au <>
Thu, 11 Jul 2002 18:46:08 +0000 (18:46 +0000)
r=jouni x2

process_bug.cgi

index afed412a37421c46ca37b94a636d6d5027b93d6b..f061d4455fbf987ff296bcb5ac9fff063f23ae1b 100755 (executable)
@@ -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});