Ticket #193 sql语句微调

This commit is contained in:
Li Jianxuan 2011-10-12 08:57:23 +00:00
parent 93c1a2432a
commit 159cdccb61
1 changed files with 1 additions and 8 deletions

View File

@ -39,16 +39,9 @@ class Admin_SysController extends Zend_Controller_Action
$description = $this->_request->getParam('description');
$body = $this->_request->getParam('body');
$auth = Zend_Auth::getInstance();
if($auth->hasIdentity())
{
$user = $auth->getIdentity();
$userid = $user->id;
}
if(empty($title)) $title=='未命名模板';
$sql = "insert into emailtext (title,description,content,userid,ts_create) values ('$title','$description','$body','$userid','".time()."')";
$sql = "insert into emailtext (title,description,content,ts_create) values ('$title','$description','$body','".time()."')";
try{
if($this->db->exec($sql)>0)