Comments/Fixup

* fix false error when voting on relies
This commit is contained in:
Sarjuuk
2025-10-04 15:39:44 +02:00
parent a6108be400
commit 9fc84cdf9e
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ class CommentDownvotereplyResponse extends TextResponse
User::canSupervote() ? -2 : -1 User::canSupervote() ? -2 : -1
); );
if (!$ok) if (!is_int($ok))
{ {
trigger_error('CommentDownvotereplyResponse - write to db failed', E_USER_ERROR); trigger_error('CommentDownvotereplyResponse - write to db failed', E_USER_ERROR);
$this->generate404(User::isInGroup(U_GROUP_STAFF) ? 'write to db failed' : ''); $this->generate404(User::isInGroup(U_GROUP_STAFF) ? 'write to db failed' : '');

View File

@@ -47,7 +47,7 @@ class CommentUpvotereplyResponse extends TextResponse
User::canSupervote() ? 2 : 1 User::canSupervote() ? 2 : 1
); );
if (!$ok) if (!is_int($ok))
{ {
trigger_error('CommentUpvotereplyResponse - write to db failed', E_USER_ERROR); trigger_error('CommentUpvotereplyResponse - write to db failed', E_USER_ERROR);
$this->generate404(User::isInGroup(U_GROUP_STAFF) ? 'write to db failed' : ''); $this->generate404(User::isInGroup(U_GROUP_STAFF) ? 'write to db failed' : '');