diff --git a/misc/maintenance/cmp_sysprefs.pl b/misc/maintenance/cmp_sysprefs.pl index c688466ee0..bed32a2517 100755 --- a/misc/maintenance/cmp_sysprefs.pl +++ b/misc/maintenance/cmp_sysprefs.pl @@ -234,7 +234,7 @@ sub DeleteOnePref { sub CheckVersionPref { #additional precaution #if there are versions, compare them my ($hash) = @_; - my $hv = $hash->{version}->{value}; + my $hv = exists $hash->{version}? $hash->{version}->{value}: undef; return if !defined $hv; my ($dv) = $dbh->selectrow_array( 'SELECT value FROM systempreferences