diff --git a/application/admin/controllers/WatermdController.php b/application/admin/controllers/WatermdController.php index d37569d6..fcf44d13 100644 --- a/application/admin/controllers/WatermdController.php +++ b/application/admin/controllers/WatermdController.php @@ -39,6 +39,7 @@ class Admin_WatermdController extends Zend_Controller_Action { $sql="select uuid,data from metadata where istemplate = 'n'"; $rows=$this->wdb->fetchAll($sql); + $this->view->deal=array(); foreach($rows as $k=>$row) { //do the replace @@ -52,7 +53,7 @@ class Admin_WatermdController extends Zend_Controller_Action $dom = new DOMDocument(); $dom->loadXML($row['data']); $title=$dom->getElementsByTagName('resTitle')->item(0)->nodeValue; - $deal['uuid']=$uuid; + $deal['uuid']=$row['uuid']; $deal['title']=$title; $this->view->deal[]=$deal; }