$hasLastDownload = false;
         $lastSearchDate  = '';
 
-        // Get list of member events.
-        if ( isset( $this->config['loggedInUser']['contactUser']['ref_dest'] )
-            && $memberID = filter_var( $this->config['loggedInUser']['contactUser']['ref_dest'], FILTER_VALIDATE_INT)
-        ) {
-            // See if this member has a saved search.
-            // If the do not then give message about it.
-            $user_id = $this->config['loggedInUser']['wpUser'];
-            if ( $user_id ) {
-                $last_search = $this->wpdb->get_row(
-                    $this->wpdb->prepare(
-                        "SELECT *
-                           FROM " . GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . "searches
-                          WHERE user_id = %d",
-                        $user_id
-                    ),
-                    ARRAY_A
-                );
-                if ( $last_search ) {
-                    $hasLastDownload = true;
-                    $lastSearchDate  = $last_search['date_created'];
-                    //echo '<pre>$last_search: ' . print_r( $last_search, true ) . '</pre>';
-                    $last_search_params = $last_search['search'];
-                    //echo '<pre>$last_search_params: ' . print_r( $last_search_params, true ) . '</pre>';
-                    $search_params = unserialize( $last_search_params );
-                    //echo '<pre>$search_params: ' . print_r( $search_params, true ) . '</pre>';
-                }
+        // See if this member has a saved search.
+        // If the do not then give message about it.
+        $user_id = $this->config['loggedInUser']['wpUser'];
+        if ( $user_id ) {
+            $last_search = $this->wpdb->get_row(
+                $this->wpdb->prepare(
+                    "SELECT *
+                       FROM " . GLM_MEMBERS_LEADS_PLUGIN_DB_PREFIX . "searches
+                      WHERE user_id = %d",
+                    $user_id
+                ),
+                ARRAY_A
+            );
+            if ( $last_search ) {
+                $hasLastDownload = true;
+                $lastSearchDate  = $last_search['date_created'];
+                //echo '<pre>$last_search: ' . print_r( $last_search, true ) . '</pre>';
+                $last_search_params = $last_search['search'];
+                //echo '<pre>$last_search_params: ' . print_r( $last_search_params, true ) . '</pre>';
+                $search_params = unserialize( $last_search_params );
+                //echo '<pre>$search_params: ' . print_r( $search_params, true ) . '</pre>';
             }
-
         }
 
+
         // Compile template data.
         $templateData = array(
             'lastSearchDate'  => $lastSearchDate,
             'hasLastDownload' => $hasLastDownload,
-            'memberID'        => $memberID,
         );
 
         // Return status, suggested view, and data to controller.