From 888c9a4f9dac037792741fc40d98d2b174a3adb1 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 28 Jul 2017 09:17:14 -0400 Subject: [PATCH] Fix for no categories was an error. cats would return an array with a false value. --- models/front/events/baseAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/front/events/baseAction.php b/models/front/events/baseAction.php index 69d45f3..2a03575 100644 --- a/models/front/events/baseAction.php +++ b/models/front/events/baseAction.php @@ -238,7 +238,7 @@ abstract class GlmMembersFront_events_baseAction extends GlmDataEvents } // Get cats if categoryId is an array - $cats = filter_var( $categoryId, FILTER_VALIDATE_INT, array( 'flags' => FILTER_FORCE_ARRAY ) ); + $cats = array_filter( filter_var( $categoryId, FILTER_VALIDATE_INT, array( 'flags' => FILTER_FORCE_ARRAY ) ) ); $catId = filter_var( $categoryId, FILTER_VALIDATE_INT ); // If a category ID is supplied if ( $catId ) { -- 2.17.1