mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Comments/Fixup
* fix false error when voting on relies
This commit is contained in:
@@ -47,7 +47,7 @@ class CommentDownvotereplyResponse extends TextResponse
|
||||
User::canSupervote() ? -2 : -1
|
||||
);
|
||||
|
||||
if (!$ok)
|
||||
if (!is_int($ok))
|
||||
{
|
||||
trigger_error('CommentDownvotereplyResponse - write to db failed', E_USER_ERROR);
|
||||
$this->generate404(User::isInGroup(U_GROUP_STAFF) ? 'write to db failed' : '');
|
||||
|
||||
@@ -47,7 +47,7 @@ class CommentUpvotereplyResponse extends TextResponse
|
||||
User::canSupervote() ? 2 : 1
|
||||
);
|
||||
|
||||
if (!$ok)
|
||||
if (!is_int($ok))
|
||||
{
|
||||
trigger_error('CommentUpvotereplyResponse - write to db failed', E_USER_ERROR);
|
||||
$this->generate404(User::isInGroup(U_GROUP_STAFF) ? 'write to db failed' : '');
|
||||
|
||||
Reference in New Issue
Block a user