Take care of undefined
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 16 Sep 2016 15:40:38 +0000 (11:40 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 16 Sep 2016 15:41:23 +0000 (11:41 -0400)
Remove the dot from assignment. (admin hook)
Remove also the undefined variable (dashboard index)

models/admin/dashboard/index.php
setup/adminHooks.php

index 5fd44da..f9a316e 100644 (file)
@@ -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.
index d10ba2c..a40bcd0 100644 (file)
@@ -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,