diff --git a/lib/Checkdomain/Holiday/Provider/AbstractProvider.php b/lib/Checkdomain/Holiday/Provider/AbstractProvider.php index 9b90324..a879a6f 100644 --- a/lib/Checkdomain/Holiday/Provider/AbstractProvider.php +++ b/lib/Checkdomain/Holiday/Provider/AbstractProvider.php @@ -67,7 +67,12 @@ protected function hasState(Holiday $holiday, $state = null) return true; } - if (is_array($holiday->getStates()) && in_array($state, $holiday->getStates())) { + $states = $holiday->getStates(); + if (empty($states)) { + return true; + } + + if (is_array($states) && in_array($state, $states)) { return true; }