Fix warning.
authorBrandon Bergren
Wed, 10 Dec 2008 15:28:59 +0000 (15:28 +0000)
committerBrandon Bergren
Wed, 10 Dec 2008 15:28:59 +0000 (15:28 +0000)
gmap_location.module

index 1541daa..59b169c 100644 (file)
@@ -235,7 +235,7 @@ function gmap_location_node_page($nid = NULL) {
   $map['rmtcallback'] = url('map/node/load');
   $map['markermode'] = $nodemap['markermode'];
 
-  if (!is_array($map['markers'])) {
+  if (!isset($map['markers']) || !is_array($map['markers'])) {
     $map['markers'] = array();
   }