Get rid of notices about undefined variables in the templates.
* 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
* @package glmMembersTravelAddOn
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.0.0
+ * @version 1.0.1
*/
// Check that we're being called by WordPress.
* 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.
$hasSearch = false;
$tab = 0;
$params = false;
+ $search_params = false;
// Get any provided option
if ( isset( $_REQUEST['option'] ) ) {
{if isset($smarty.request.contact)}<input type="hidden" name="contact" value="{$smarty.request.contact}">{/if}
{if isset($smarty.request.from_date)}<input type="hidden" name="from_date" value="{$smarty.request.from_date}">{/if}
{if isset($smarty.request.to_date)}<input type="hidden" name="to_date" value="{$smarty.request.to_date}">{/if}
- {if $smarty.request.state}
+ {if isset($smarty.request.state) && $smarty.request.state}
{foreach $smarty.request.state as $state}
<input type="hidden" name="state[]" value="{$state}">
{/foreach}
{if isset($smarty.request.contact)}<input type="hidden" name="contact" value="{$smarty.request.contact}">{/if}
{if isset($smarty.request.from_date)}<input type="hidden" name="from_date" value="{$smarty.request.from_date}">{/if}
{if isset($smarty.request.to_date)}<input type="hidden" name="to_date" value="{$smarty.request.to_date}">{/if}
- {if $smarty.request.state}
+ {if isset($smarty.request.state) && $smarty.request.state}
{foreach $smarty.request.state as $state}
<input type="hidden" name="state[]" value="{$state}">
{/foreach}
<br clear="all">
<p><b>Total found:</b> {$leadCount} </p>
<div class="business-first-letter">
- <a href="{$thisUrl}?page={$thisPage}&glm_action=index&company={$smarty.request.company}&contact={$smarty.request.contact}#glm-member-list-filters-button" class="glm-alpha-link{if !$alphaSelected} curr{/if}">All</a>
+ <a href="{$thisUrl}?page={$thisPage}&glm_action=index{if isset($smarty.request.company)}&company={$smarty.request.company}{/if}{if isset($smarty.request.contact)}&contact={$smarty.request.contact}{/if}#glm-member-list-filters-button" class="glm-alpha-link{if !$alphaSelected} curr{/if}">All</a>
{foreach $alphaList as $a}
- <a href="{$thisUrl}?page={$thisPage}&glm_action=index&alpha={$a.alpha}&company={$smarty.request.company}&contact={$smarty.request.contact}#glm-member-list-filters-button" class="glm-alpha-link{if $a.default} curr{/if}">{$a.alpha}</a>
+ <a href="{$thisUrl}?page={$thisPage}&glm_action=index&alpha={$a.alpha}{if isset($smarty.request.company)}&company={$smarty.request.company}{/if}{if isset($smarty.request.contact)}&contact={$smarty.request.contact}{/if}#glm-member-list-filters-button" class="glm-alpha-link{if $a.default} curr{/if}">{$a.alpha}</a>
{/foreach}
</div>
{if isset($smarty.request.contact)}<input type="hidden" name="contact" value="{$smarty.request.contact}">{/if}
{if isset($smarty.request.from_date)}<input type="hidden" name="from_date" value="{$smarty.request.from_date}">{/if}
{if isset($smarty.request.to_date)}<input type="hidden" name="to_date" value="{$smarty.request.to_date}">{/if}
- {if $smarty.request.state}
+ {if isset($smarty.request.state) && $smarty.request.state}
{foreach $smarty.request.state as $state}
<input type="hidden" name="state[]" value="{$state}">
{/foreach}
{if isset($smarty.request.contact)}<input type="hidden" name="contact" value="{$smarty.request.contact}">{/if}
{if isset($smarty.request.from_date)}<input type="hidden" name="from_date" value="{$smarty.request.from_date}">{/if}
{if isset($smarty.request.to_date)}<input type="hidden" name="to_date" value="{$smarty.request.to_date}">{/if}
- {if $smarty.request.state}
+ {if isset($smarty.request.state) && $smarty.request.state}
{foreach $smarty.request.state as $state}
<input type="hidden" name="state[]" value="{$state}">
{/foreach}