强制数组模式
This commit is contained in:
parent
fd98b05f59
commit
a48a75a77c
|
@ -19,9 +19,10 @@ class EmailText{
|
||||||
$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