From fd5cfbb82a359ed24277b3c40bdd67711e4d66f7 Mon Sep 17 00:00:00 2001 From: Sebastian Gurlt Date: Mon, 22 Nov 2021 10:48:51 +0100 Subject: [PATCH] Allow filtering for multiple leagues --- includes/class-sp-calendar.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/class-sp-calendar.php b/includes/class-sp-calendar.php index c01163a9..854353ff 100644 --- a/includes/class-sp-calendar.php +++ b/includes/class-sp-calendar.php @@ -270,7 +270,11 @@ public function data() { endif; if ( $this->league ) : - $league_ids = array( $this->league ); + if (is_array( $this->league )) { + $league_ids = $this->league; + } else { + $league_ids = array( $this->league ); + } endif; if ( $this->season ) :