issue 571 comment declare duplicated error fixed

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9753 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-10-26 07:22:55 +00:00
parent 228f07a906
commit 301e763db4

View file

@ -582,9 +582,9 @@
$args->ipaddress = $_SERVER['REMOTE_ADDR'];
}
$args->comment_srl = $comment_srl;
$output = executeQuery('comment.getCommentDeclaredLogInfo', $args);
$log_output = executeQuery('comment.getCommentDeclaredLogInfo', $args);
// session registered if log info contains report log.
if($output->data->count) {
if($log_output->data->count) {
$_SESSION['declared_comment'][$comment_srl] = true;
return new Object(-1, 'failed_declared');
}