add return value

This commit is contained in:
wlx 2012-11-30 18:23:22 +00:00
parent 43ec7f74ac
commit aaab80640c
1 changed files with 2 additions and 1 deletions

View File

@ -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 "; $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."'"; if (!empty($code)) $sql.=" where c.code='".$code."'";
$rs=$this->db->query($sql); $rs=$this->db->query($sql);
$rows=$rs->fetchAll(); $rows=$rs->fetchAll();
return $rows;
} }
} }