diff --git a/Koha/CookieManager.pm b/Koha/CookieManager.pm index d7680d8cc0..018c8068e1 100644 --- a/Koha/CookieManager.pm +++ b/Koha/CookieManager.pm @@ -99,6 +99,7 @@ sub clear_unless { } else { $name = $c; } + next if !$name; if( !$self->{_remove_unless}->{$name} ) { next if $seen->{$name};