X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FMember%2FPage%2FDashBoard.php;h=ab55f088a075422e51247c9cc21bf7a83bf0ed3a;hb=d031c654f72b36c9f4d88bdb3dd55ddbadb98535;hp=2642b0d25927a3d2ff2cebf81571b510d55c1d92;hpb=0370ad2019f4f04fa28277ebdd9da925e8262e7c;p=civicrm-core.git diff --git a/CRM/Member/Page/DashBoard.php b/CRM/Member/Page/DashBoard.php index 2642b0d259..ab55f088a0 100644 --- a/CRM/Member/Page/DashBoard.php +++ b/CRM/Member/Page/DashBoard.php @@ -1,9 +1,9 @@ showMembershipSummary = FALSE; + $this->assign('membershipSummary', FALSE); + return; + } + $this->assign('membershipSummary', TRUE); CRM_Utils_System::setTitle(ts('CiviMember')); $membershipSummary = array(); $preMonth = date("Y-m-d", mktime(0, 0, 0, date("m") - 1, 01, date("Y"))); @@ -60,7 +70,7 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page { // You can force the dashboard to display based upon a certain date $ym = CRM_Utils_Array::value('date', $_GET); - + if ($ym) { if (preg_match('/^\d{6}$/', $ym) == 0 || !checkdate(substr($ym, 4, 2), 1, substr($ym, 0, 4)) || @@ -165,10 +175,10 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page { $status = implode(',', $status); /* Disabled for lack of appropriate search - + The Membership search isn't able to properly filter by join or renewal events. Until that works properly, the subtotals shouldn't get links. - + foreach ($membershipSummary as $typeID => $details) { foreach ($details as $key => $value) { switch ($key) { @@ -238,9 +248,9 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page { } } */ - + // Temporary replacement for current totals column - + foreach ($membershipSummary as $typeID => $details) { if (!$isCurrentMonth) { $membershipSummary[$typeID]['total']['total']['url'] = CRM_Utils_System::url('civicrm/member/search',