修复文献管理错误
This commit is contained in:
parent
5a09ea3609
commit
8d8a11cfbb
|
@ -560,7 +560,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
if ($form->isValid($formdata)) {
|
||||
$sql="select id from reference where reference=?";
|
||||
$row=$this->db->query($sql,array($formdata['reference']));
|
||||
if (!$row)
|
||||
if ($row)
|
||||
{
|
||||
//更新文献信息
|
||||
$sql="update reference set reference=?,link=? where id=?";
|
||||
|
|
Loading…
Reference in New Issue