From cff0640380b2eb1fe166fc270f11c20c11b5a673 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 16 Sep 2016 11:40:38 -0400 Subject: [PATCH] Take care of undefined Remove the dot from assignment. (admin hook) Remove also the undefined variable (dashboard index) --- models/admin/dashboard/index.php | 1 - setup/adminHooks.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/models/admin/dashboard/index.php b/models/admin/dashboard/index.php index 5fd44da4..f9a316e0 100644 --- a/models/admin/dashboard/index.php +++ b/models/admin/dashboard/index.php @@ -185,7 +185,6 @@ class GlmMembersAdmin_dashboard_index extends GlmDataMembers 'memberInfoRecords' => $memberInfoRecords, 'clickThroughCounts' => $clickThroughCounts, 'detailViewCounts' => $detailViewCounts, - 'thisDate' => $thisDate, ); // Return status, suggested view, and data to controller. diff --git a/setup/adminHooks.php b/setup/adminHooks.php index d10ba2cc..a40bcd05 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -152,7 +152,7 @@ add_action('admin_menu', 'glmRemoveDashboard'); add_filter( 'glm-member-db-dashboard-member-widgets', function ( $member = null ) { - $content .= $this->controller( 'dashboard', 'index', $member ); + $content = $this->controller( 'dashboard', 'index', $member ); return $content; }, 10, -- 2.17.1