adding check for packages and details link in the package detail view
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 17 Nov 2017 19:06:41 +0000 (14:06 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 17 Nov 2017 19:06:41 +0000 (14:06 -0500)
ensuring member id exists before trying to display the packages and details link in
packages detail page

index.php
views/front/packaging/detail.html

index ccbf42f..146df32 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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.
index 634ad02..57ae0fb 100644 (file)
@@ -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}<a href="mailto:{$package.member.email}">Email</a>{/if}
 <!--                        {if $settings.package_detail_show_member_coupons && $coupons}<a href="#glm-member-detail-coupons">Coupons</a>{/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}
                     </div>
 
                 </div>