fix parameter error

This commit is contained in:
wlx 2014-06-17 03:35:48 +00:00
parent 0efa9098d5
commit 41a63c752c
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ class Archive
left join ".$this->tbl_categorys." c on ac.cid=c.id ";
$sql.=" where a.title=? and c.ptype='about' and a.sub=''";
$sth=$this->db->prepare($sql);
$sth->execute(array($title,$ptype));
$sth->execute(array($title));
$rows=$sth->fetch();
return $rows;
}//getAboutArchive