强制数组模式
This commit is contained in:
parent
fd98b05f59
commit
a48a75a77c
|
@ -18,10 +18,11 @@ class EmailText{
|
||||||
if(is_numeric($this->tmpid))
|
if(is_numeric($this->tmpid))
|
||||||
$sql = "select * from emailtext where id='".$this->tmpid."'";
|
$sql = "select * from emailtext where id='".$this->tmpid."'";
|
||||||
else
|
else
|
||||||
$sql = "select * from emailtext where template='".$this->tmpid."'";
|
$sql = "select * from emailtext where template='".$this->tmpid."'";
|
||||||
|
$t=$this->db->getFetchMode();
|
||||||
|
$this->db->setFetchMode(Zend_Db::FETCH_ASSOC);
|
||||||
$rs = $this->db->query($sql);
|
$rs = $this->db->query($sql);
|
||||||
|
$this->db->setFetchMode($t);
|
||||||
$this->tmpinfo = $rs->fetch();
|
$this->tmpinfo = $rs->fetch();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue