From: Steve Sutton Date: Tue, 11 Sep 2018 13:16:49 +0000 (-0400) Subject: Update for php notices X-Git-Tag: v1.0.1^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a284bc6d3efb619631076eecae10ab7a7489b897;p=WP-Plugins%2Fglm-member-db-travel.git Update for php notices Get rid of notices about undefined variables in the templates. --- diff --git a/index.php b/index.php index 8352305..18d4e13 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Associate - Travel Leads * Plugin URI: http://www.gaslightmedia.com/ * Description: Trevel Leads - * Version: 1.0.0 + * Version: 1.0.1 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersTravelAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.0 + * @version 1.0.1 */ // Check that we're being called by WordPress. @@ -43,7 +43,7 @@ if (!defined('ABSPATH')) { * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_TRAVEL_PLUGIN_VERSION', '1.0.0'); +define('GLM_MEMBERS_TRAVEL_PLUGIN_VERSION', '1.0.1'); define('GLM_MEMBERS_TRAVEL_PLUGIN_DB_VERSION', '0.0.5'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/admin/travel/members.php b/models/admin/travel/members.php index 516d8c8..3f406dd 100644 --- a/models/admin/travel/members.php +++ b/models/admin/travel/members.php @@ -110,6 +110,7 @@ class GlmMembersAdmin_travel_members extends GlmDataTravelLeads $hasSearch = false; $tab = 0; $params = false; + $search_params = false; // Get any provided option if ( isset( $_REQUEST['option'] ) ) { diff --git a/views/admin/travel/index.html b/views/admin/travel/index.html index 97d00d5..b79bc9e 100644 --- a/views/admin/travel/index.html +++ b/views/admin/travel/index.html @@ -11,7 +11,7 @@ {if isset($smarty.request.contact)}{/if} {if isset($smarty.request.from_date)}{/if} {if isset($smarty.request.to_date)}{/if} - {if $smarty.request.state} + {if isset($smarty.request.state) && $smarty.request.state} {foreach $smarty.request.state as $state} {/foreach} @@ -26,7 +26,7 @@ {if isset($smarty.request.contact)}{/if} {if isset($smarty.request.from_date)}{/if} {if isset($smarty.request.to_date)}{/if} - {if $smarty.request.state} + {if isset($smarty.request.state) && $smarty.request.state} {foreach $smarty.request.state as $state} {/foreach} @@ -44,9 +44,9 @@

Total found: {$leadCount}  

- All + All {foreach $alphaList as $a} - {$a.alpha} + {$a.alpha} {/foreach}
diff --git a/views/admin/travel/members.html b/views/admin/travel/members.html index 1e51cf2..a71b714 100644 --- a/views/admin/travel/members.html +++ b/views/admin/travel/members.html @@ -14,7 +14,7 @@ {if isset($smarty.request.contact)}{/if} {if isset($smarty.request.from_date)}{/if} {if isset($smarty.request.to_date)}{/if} - {if $smarty.request.state} + {if isset($smarty.request.state) && $smarty.request.state} {foreach $smarty.request.state as $state} {/foreach} @@ -29,7 +29,7 @@ {if isset($smarty.request.contact)}{/if} {if isset($smarty.request.from_date)}{/if} {if isset($smarty.request.to_date)}{/if} - {if $smarty.request.state} + {if isset($smarty.request.state) && $smarty.request.state} {foreach $smarty.request.state as $state} {/foreach}