// 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;
// 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;