diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php index a30682fa..769c0738 100644 --- a/application/default/controllers/ServiceController.php +++ b/application/default/controllers/ServiceController.php @@ -76,7 +76,7 @@ class ServiceController extends Zend_Controller_Action } else { $where=$this->db->quoteInto('m.id = ?',$id); } - $sql="select g.id as gid,t.filename,t.filetype from en.geonetworkmetadata g left join en.metadata m on g.uuid=m.uuid left join thumbnail t on t.id=m.id where ".$where; + $sql="select g.id as gid,t.filename,t.filetype from en.geonetworkmetadata g left join en.metadata m on g.uuid=m.uuid left join en.thumbnail t on t.id=m.id where ".$where; $thumb=$this->db->fetchRow($sql); $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender();