From ba78fe29fbee4fdcacd6440e5c78549ac6e2d340 Mon Sep 17 00:00:00 2001 From: misol Date: Wed, 18 Mar 2009 12:52:08 +0000 Subject: [PATCH] =?UTF-8?q?refix=20=EB=84=A4=EC=9D=B4=EB=B2=84=20=EC=A7=80?= =?UTF-8?q?=EB=8F=84=20=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20zoom=20?= =?UTF-8?q?=EA=B0=92=EC=9D=80=200=EC=9D=BC=20=EC=88=98=20=EB=8F=84=20?= =?UTF-8?q?=EC=9E=88=EB=8B=A4.=20(=EA=B7=B8=EB=9E=98=EC=84=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95...)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5909 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/components/naver_map/naver_map.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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');