fix sql error, change the chinese blank
This commit is contained in:
parent
5fef38b8ab
commit
4dd37341ed
|
@ -2346,7 +2346,7 @@ class AuthorController extends Zend_Controller_Action
|
||||||
$row=$sth->fetch();
|
$row=$sth->fetch();
|
||||||
if (!empty($row))
|
if (!empty($row))
|
||||||
{
|
{
|
||||||
$data = array("error"=>'错误的入口');
|
$data = array("error"=>'Wrong path.');
|
||||||
$this->jsonexit($data);
|
$this->jsonexit($data);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -2373,7 +2373,7 @@ class AuthorController extends Zend_Controller_Action
|
||||||
|
|
||||||
// 保存数据作者信息
|
// 保存数据作者信息
|
||||||
// 仅保存不存在的作者信息
|
// 仅保存不存在的作者信息
|
||||||
$sql="insert into mdauthor (uuid,userid,ts_activated,status) select ?,?,now(),1 where not exists
|
$sql="insert into mdauthor (uuid,userid,ts_activated,status) select ?,?,now(),1 where not exists
|
||||||
(select id from mdauthor where uuid=? and userid=?)";
|
(select id from mdauthor where uuid=? and userid=?)";
|
||||||
$this->db->query($sql,array($row['uuid'],$u_id),$row['uuid'],$u_id);
|
$this->db->query($sql,array($row['uuid'],$u_id),$row['uuid'],$u_id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue