diff --git a/application/models/EmailText.php b/application/models/EmailText.php index 56f6f4c0..6bfe94c8 100644 --- a/application/models/EmailText.php +++ b/application/models/EmailText.php @@ -18,10 +18,11 @@ class EmailText{ if(is_numeric($this->tmpid)) $sql = "select * from emailtext where id='".$this->tmpid."'"; 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); - + $this->db->setFetchMode($t); $this->tmpinfo = $rs->fetch(); }