summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebgeer2006-05-21 07:26:24 (GMT)
committer webgeer2006-05-21 07:26:24 (GMT)
commit2b059a3f0f879392e8690275f0ccee88179bc440 (patch)
treed2559dc37cc0580256521f5ae5dee1c7760a99ce
parent50c1938b29d77a5610a54119acd01dc7cf8d152e (diff)
bug fix: http://drupal.org/project/comments/add/64718
-rw-r--r--gmap.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmap.module b/gmap.module
index 0de1304..aedfb2a 100644
--- a/gmap.module
+++ b/gmap.module
@@ -239,7 +239,7 @@ function gmap_draw_map($gmap, $javascript='') {
$mytext='';
}
if (isset($item['tooltip'])) {
- $tooltip='<p class="gmap-tooltip">'.$item['tooltip'].'</p>';
+ $tooltip='<p class="gmap-tooltip">'.check_plain($item['tooltip']).'</p>';
}
else {
$tooltip='';
@@ -806,7 +806,7 @@ function gmap_users_page() {
}
function gmap_user($op, &$edit, &$user, $category = NULL) {
- if (variable_get('gmap_user',0)) {
+ if (user_access('show user map')) {
switch ($op) {
case 'categories':
return array(array('name'=>'gmap_user', 'title'=> t('location map'),'weight'=>5));