Bug 24272: (follow-up) Test defined not true

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2021-01-15 11:00:39 +00:00 committed by Jonathan Druart
parent de5527f37d
commit a9ea5d1ba4

View file

@ -43,6 +43,6 @@ my $prefs = Koha::Config::SysPrefs->search();
while (my $pref = $prefs->next) {
my $var = lc $pref->variable;
my $cached_var = $syspref_cache->get_from_cache("syspref_$var");
next unless $cached_var;
next unless defined $cached_var; #If not defined in cache we will fetch from DB so this case is OK
print "$var: value in cache is $cached_var and value in db is ".$pref->value,"\n" unless $cached_var eq $pref->value;
}