From 41a63c752c48cdc6ebd36fe26a81db2c0298cdd8 Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 17 Jun 2014 03:35:48 +0000 Subject: [PATCH] fix parameter error --- application/models/Archive.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Archive.php b/application/models/Archive.php index 894ef089..bb41b813 100644 --- a/application/models/Archive.php +++ b/application/models/Archive.php @@ -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