修复错误

This commit is contained in:
wlx 2011-10-26 02:50:09 +00:00
parent 5b13ec8719
commit a16bbe2e35
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}