From a16bbe2e35218821384bd67a43da559642b270b2 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 26 Oct 2011 02:50:09 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/WatermdController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }