Fixer problem with view not knowing if packages are provided in list.
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 14 Dec 2015 21:16:20 +0000 (16:16 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 14 Dec 2015 21:16:20 +0000 (16:16 -0500)
glm-member-db-packaging.php
views/front/packaging/list.html

index c92ba8c..5e3cf43 100644 (file)
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Packaging
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.0.0
+ * Version: 1.0.1
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -33,7 +33,7 @@
  *  version when there's a change in the database!! Use the
  *  version nunmber of that release for the DB version.
  */
-define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.0.0');
+define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.0.1');
 define('GLM_MEMBERS_PACKAGING_PLUGIN_DB_VERSION', '0.0.2');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 1b7d851..9034e26 100644 (file)
@@ -1,6 +1,8 @@
 {include file='front/packaging/header.html'}
-    
-{foreach $packages as $p}
+{if $havePackages}
+   
+ {foreach $packages as $p}
     <div>
   {if $p.ref_type.value}
     {if $byMember}
           {/if}
         </div>
     </div>
-    
-  
+  {/foreach}
 
-{/foreach}
+{else}
+    (Sorry, no packages currently listed.)
+{/if}
   
 {include file='front/footer.html'}