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>
(cherry picked from commit a8f2eaa795)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
Nick Clemens 2021-01-15 11:00:39 +00:00 committed by Andrew Fuerste-Henry
parent ff6951e83b
commit da8aae4d65
1 changed files with 1 additions and 1 deletions

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;
}