Bug 24272: (follow-up) Test defined not true
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit a9ea5d1ba4)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
5a1e18efd8
commit
a8f2eaa795
|
|
@ -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