From e6d20244171d6f5a3e99307a4eeb5f62070d9f25 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 27 Oct 2015 14:52:06 -0400 Subject: [PATCH] Fixed problem with dashboards showing empty list of member info records with bad postions. --- models/admin/dashboardWidget/index.php | 2 +- models/admin/members/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/admin/dashboardWidget/index.php b/models/admin/dashboardWidget/index.php index 0142d911..a981cc89 100644 --- a/models/admin/dashboardWidget/index.php +++ b/models/admin/dashboardWidget/index.php @@ -151,7 +151,7 @@ class GlmMembersAdmin_dashboardWidget_index extends GlmDataMembers // Get member information records with bad or no lat/lon $hideArchived = " T.status != ".$this->config['status_numb']['Archived']; $badLatLonList = $MemberInfo->getSimpleMemberInfoList($hideArchived.' AND (T.lat = 0 OR T.lon = 0)'); - $haveBadLatLon = (count($badLatLonList) > 0); + $haveBadLatLon = (is_array($badLatLonList) && count($badLatLonList) > 0); // If there's members with pending information, list them $pendingList = false; diff --git a/models/admin/members/index.php b/models/admin/members/index.php index e1bd5ac4..4510f9b3 100644 --- a/models/admin/members/index.php +++ b/models/admin/members/index.php @@ -150,7 +150,7 @@ class GlmMembersAdmin_members_index extends GlmDataMembers // Get member information records with bad or no lat/lon $hideArchived = " T.status != ".$this->config['status_numb']['Archived']; $badLatLonList = $MemberInfo->getSimpleMemberInfoList($hideArchived.' AND (T.lat = 0 OR T.lon = 0)'); - $haveBadLatLon = (count($badLatLonList) > 0); + $haveBadLatLon = (is_array($badLatLonList) && count($badLatLonList) > 0); // If there's members with pending information, list them $pendingList = false; -- 2.17.1