diff --git a/modules/editor/components/naver_map/naver_map.class.php b/modules/editor/components/naver_map/naver_map.class.php index 6576de67e..ea7013c8c 100644 --- a/modules/editor/components/naver_map/naver_map.class.php +++ b/modules/editor/components/naver_map/naver_map.class.php @@ -106,6 +106,7 @@ $x = $xml_obj->attrs->x; $y = $xml_obj->attrs->y; $zoom = $xml_obj->attrs->zoom; + if(!is_numeric($zoom)) $zoom = 3; $marker = urlencode($xml_obj->attrs->marker); $style = $xml_obj->attrs->style; @@ -116,7 +117,7 @@ if(!$height) $height = 400; $body_code = sprintf('
', $width, $height, Context::getRequestUri(), $width, $height, $x, $y, $zoom, $marker, $width, $height); - return $body_code; + return $zoom; } function displayMap() { @@ -139,7 +140,7 @@ settype($y,"int"); $zoom = Context::get('zoom'); - if($zoom == '') $zoom = 3; + if(!is_int($zoom)) $zoom = 3; settype($zoom,"int"); $marker = Context::get('marker');