From a48a75a77c0ea85e48e3f0ee1a9be76edeafc0f7 Mon Sep 17 00:00:00 2001 From: wlx Date: Thu, 27 Oct 2011 10:01:18 +0000 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=88=B6=E6=95=B0=E7=BB=84=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/models/EmailText.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); }