From aaab80640c8cb3532979e6be40536e9923c659a8 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 30 Nov 2012 18:23:22 +0000 Subject: [PATCH] add return value --- application/models/Archive.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/Archive.php b/application/models/Archive.php index b4958a83..7f5a2189 100644 --- a/application/models/Archive.php +++ b/application/models/Archive.php @@ -226,6 +226,7 @@ class Archive $sql="select a.* from ".$this->tbl_archives." a left join ".$this->tbl_catalog." ac on a.id=ac.aid left join ".$this->tbl_categorys." c on ac.cid=c.id "; if (!empty($code)) $sql.=" where c.code='".$code."'"; $rs=$this->db->query($sql); - $rows=$rs->fetchAll(); + $rows=$rs->fetchAll(); + return $rows; } }