From c39b8df8c0dc3a55e454c8e3cd55e2a4138c46d6 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 8 Sep 2016 16:41:31 -0400 Subject: [PATCH] Update for the user id. Need the wpUser for the correct user id. The other one is the member id. --- models/admin/dashboard/leads.php | 2 +- views/admin/dashboard/leads.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/models/admin/dashboard/leads.php b/models/admin/dashboard/leads.php index 184c9a5..6286368 100644 --- a/models/admin/dashboard/leads.php +++ b/models/admin/dashboard/leads.php @@ -108,7 +108,7 @@ class GlmMembersAdmin_dashboard_leads // extends GlmDataEvents ) { // 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( diff --git a/views/admin/dashboard/leads.html b/views/admin/dashboard/leads.html index ec9ea0d..b832082 100644 --- a/views/admin/dashboard/leads.html +++ b/views/admin/dashboard/leads.html @@ -11,6 +11,7 @@ Download {else}

Search for leads

+ Start searching for leads {/if} -- 2.17.1