Small changes for error handling
-
I’ve made some small changes to the GoogleMapper plugin in order to exclude some pesky warnings.
File:
/admin/Maps/manage_map_markers.inc.php line 24
Was:
if (count($mmm_markers) > 0 ) {
Changed
if (is_array($mmm_markers) and count($mmm_markers) > 0 ) {
File:
/gmaps/single_map.php line 18
Added
if(is_array($markers)){
File:
/gmaps/single_map.php line 20
Added
}
File:
/gmaps/single_map.php line 89
Added
if(is_array($markers)){
File:
/gmaps/single_map.php line 107
Added
}
File:
/classes/GMap_Marker.inc.php line 44
Was
} elseif ( $results === 0) {
Changed to
} elseif ( $results === 0 or $results == NULL) {
- The topic ‘Small changes for error handling’ is closed to new replies.