From 400a6fb522a6fe253878967b6536e4abb4575de3 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 6 Jul 2016 09:30:58 -0400 Subject: [PATCH] fix php error error when trying to filter array. needs a check to make sure it is an array first. --- index.php | 6 +++--- models/front/members/list.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index d9552406..0b773970 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 2.1.17 + * Version: 2.1.18 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabase * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 2.1.17 + * @version 2.1.18 */ /* @@ -38,7 +38,7 @@ * */ -define('GLM_MEMBERS_PLUGIN_VERSION', '2.1.17'); +define('GLM_MEMBERS_PLUGIN_VERSION', '2.1.18'); define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.11'); // Check if plugin version is not current in WordPress option and if needed updated it diff --git a/models/front/members/list.php b/models/front/members/list.php index e6f7079a..17c116f8 100644 --- a/models/front/members/list.php +++ b/models/front/members/list.php @@ -444,7 +444,7 @@ class GlmMembersFront_members_list extends GlmDataMemberInfo } // If we have a sane amenity ID } // If an amenity search has been selected } // it doing amenity search - $amenityData = array_filter( $amenityData ); + $amenityData = ( is_array( $amenityData ) ) ? array_filter( $amenityData ) : array(); // Only look at active member information where the member is displayable (access = 20, 30, 40) $where .= $whereSep." -- 2.17.1