Fixed problem with dashboards showing empty list of member info records with bad...
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 27 Oct 2015 18:52:06 +0000 (14:52 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 27 Oct 2015 18:52:06 +0000 (14:52 -0400)
models/admin/dashboardWidget/index.php
models/admin/members/index.php

index 0142d91..a981cc8 100644 (file)
@@ -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;
index e1bd5ac..4510f9b 100644 (file)
@@ -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;