From e95557c058389c0c484b211a0317365d32aad145 Mon Sep 17 00:00:00 2001 From: wlx Date: Sun, 23 Oct 2011 09:45:26 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=95=E5=BD=B1=E5=A4=84?= =?UTF-8?q?=E7=90=86=E9=94=99=E8=AF=AF=EF=BC=8C=E8=AE=BE=E7=BD=AEDOC?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=AD=97=E4=BD=93=E4=B8=BA=E5=AE=8B=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/DataController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 245850ae..f1547e8b 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -1398,11 +1398,12 @@ class DataController extends Zend_Controller_Action if (is_numeric($row['projection'])) { $sql="select proj4text from spatial_ref_sys where auth_srid=?"; - $rs=$this->db->fetchRow($sql,array((int)$row['projection'])); + $rs=$this->db->fetchRow($sql,array($row['projection'])); if ($rs) $projection=$rs['proj4text']; } - if (empty($prjection)) $projection=$row['projection']; - } + if (empty($projection)) $projection=$row['projection']; + } else + $projection=''; $dom = new DOMDocument(); $dom->loadXML($row['data']); @@ -1428,7 +1429,7 @@ class DataController extends Zend_Controller_Action '; $content.=''.$row['title'].''; $content.='