From e97e7a1281708aa5165d1eefbc4a5fd4fb346426 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 17 Nov 2017 14:06:41 -0500 Subject: [PATCH] adding check for packages and details link in the package detail view ensuring member id exists before trying to display the packages and details link in packages detail page --- index.php | 6 +++--- views/front/packaging/detail.html | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index ccbf42f..146df32 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Packaging * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.2.14 + * Version: 1.2.15 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabasePackagingAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.2.14 + * @version 1.2.15 */ /* @@ -37,7 +37,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.2.14'); +define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.2.15'); define('GLM_MEMBERS_PACKAGING_PLUGIN_DB_VERSION', '1.1.6'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/views/front/packaging/detail.html b/views/front/packaging/detail.html index 634ad02..57ae0fb 100644 --- a/views/front/packaging/detail.html +++ b/views/front/packaging/detail.html @@ -95,7 +95,9 @@ {apply_filters('glm-member-db-front-members-detail-linksTop', '', $package.member.id)} {if $package.member.email && $settings.package_detail_show_member_email}Email{/if} - {apply_filters('glm-member-db-front-package-detail-linksBottom', '', $package.member.id)} + {if $package.member.id} + {apply_filters('glm-member-db-front-package-detail-linksBottom', '', $package.member.id)} + {/if} -- 2.17.1