From: Chuck Scott Date: Tue, 27 Oct 2015 18:52:06 +0000 (-0400) Subject: Fixed problem with dashboards showing empty list of member info records with bad... X-Git-Tag: v1.0.40^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e6d20244171d6f5a3e99307a4eeb5f62070d9f25;p=WP-Plugins%2Fglm-member-db.git Fixed problem with dashboards showing empty list of member info records with bad postions. --- 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;