summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Mapstraction/usermap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Mapstraction/usermap.js b/plugins/Mapstraction/usermap.js
index 7fb73fa88..19ec54c39 100644
--- a/plugins/Mapstraction/usermap.js
+++ b/plugins/Mapstraction/usermap.js
@@ -5,7 +5,7 @@ $(document).ready(function() {
if(notice['geo'])
notices.push(notice);
});
- if($("#map_canvas") && notices.length>0)
+ if($("#map_canvas").length && notices.length>0)
{
showMapstraction($("#map_canvas"), notices);
}