Bug 24272: (follow-up) Test defined not true
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
de5527f37d
commit
a9ea5d1ba4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue