From da8aae4d65716f066af784cd60e9c8784d954dbe Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 15 Jan 2021 11:00:39 +0000 Subject: [PATCH] Bug 24272: (follow-up) Test defined not true Signed-off-by: Jonathan Druart (cherry picked from commit a9ea5d1ba42d8d0bbf3f8ad01e22521f20efdd38) Signed-off-by: Fridolin Somers (cherry picked from commit a8f2eaa7958f595e549b91d162ee6d8320ff12ed) Signed-off-by: Andrew Fuerste-Henry --- misc/maintenance/check_syspref_cache.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/maintenance/check_syspref_cache.pl b/misc/maintenance/check_syspref_cache.pl index 809ecaae05..ac60081389 100755 --- a/misc/maintenance/check_syspref_cache.pl +++ b/misc/maintenance/check_syspref_cache.pl @@ -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; } -- 2.39.5