Skip to content

Commit

Permalink
修复ajax.php添加评论时sql语句错误导致判断失效的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
allures committed Feb 17, 2020
1 parent eb8687f commit 24003cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/class/ajax.php
Expand Up @@ -25,7 +25,7 @@
logmsg(0,'验证码错误!');
}
}
$v = $db->getdata("select id from `Log` where id=:id",array('id'=>$id));
$v = $db->getdata("select * from `Log` where id=:id",array('id'=>$id));
if(empty($v[0]) || $v[0]['lock']==1 || $v[0]['hide']==1){
logmsg(0,'评论失败!');
}
Expand Down

0 comments on commit 24003cd

Please sign in to comment.