summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gmap_location.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmap_location.module b/gmap_location.module
index 1541daa..59b169c 100644
--- a/gmap_location.module
+++ b/gmap_location.module
@@ -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();
}