修复文献管理错误

This commit is contained in:
wlx 2010-06-30 14:04:58 +00:00
parent 5a09ea3609
commit 8d8a11cfbb
1 changed files with 1 additions and 1 deletions

View File

@ -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=?";