Bug 24272: (follow-up) Test defined not true
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commita9ea5d1ba4) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commita8f2eaa795) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
ff6951e83b
commit
da8aae4d65
|
|
@ -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 New Issue