From 4aabe830279cfefaac74e6fbe7373e6fe273384b Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 27 Sep 2016 09:27:04 -0400 Subject: [PATCH] changing include to include_once in the filter for member categories in fronthooks.php --- setup/frontHooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/frontHooks.php b/setup/frontHooks.php index a331294c..bb463420 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -266,8 +266,8 @@ function glm_members_only_template( $template ) { * */ add_filter('member_categories', function(){ - include GLM_MEMBERS_PLUGIN_CLASS_PATH . '/data/dataCategories.php'; - $categories = new GlmDataCategories($this->wpdb, $this->config); + include_once GLM_MEMBERS_PLUGIN_CLASS_PATH . '/data/dataCategories.php'; + $categories = new GlmDataCategories( $this->wpdb, $this->config ); return $categories->getListSortedParentChild(); }); add_filter('glm_associate_config', function() { -- 2.17.1