From: Steve Sutton Date: Fri, 16 Sep 2016 15:40:38 +0000 (-0400) Subject: Take care of undefined X-Git-Tag: v2.7.0^2~1^2~15 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=cff0640380b2eb1fe166fc270f11c20c11b5a673;p=WP-Plugins%2Fglm-member-db.git Take care of undefined Remove the dot from assignment. (admin hook) Remove also the undefined variable (dashboard index) --- 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,