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.='