projects
/
WP-Plugins
/
glm-member-db-events.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb1e510
)
Fix for no categories
author
Steve Sutton
<steve@gaslightmedia.com>
Fri, 28 Jul 2017 13:17:14 +0000
(09:17 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Fri, 28 Jul 2017 13:17:14 +0000
(09:17 -0400)
was an error. cats would return an array with a false value.
models/front/events/baseAction.php
patch
|
blob
|
history
diff --git
a/models/front/events/baseAction.php
b/models/front/events/baseAction.php
index
69d45f3
..
2a03575
100644
(file)
--- 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 ) {