Need the wpUser for the correct user id.
The other one is the member id.
) {
// See if this member has a saved search.
// If the do not then give message about it.
- $user_id = $this->config['loggedInUser']['contactUser']['ID'];
+ $user_id = $this->config['loggedInUser']['wpUser'];
if ( $user_id ) {
$last_search = $this->wpdb->get_row(
$this->wpdb->prepare(
<a href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=csvExport">Download</a>
{else}
<h3>Search for leads</h3>
+ <a href="{$thisUrl}?page=glm-members-admin-menu-leads-index">Start searching for leads</a>
{/if}
</div>
</div>