From 314809978a45957572d325624e9efb214957b6f0 Mon Sep 17 00:00:00 2001 From: NoPlagiarism <37241775+NoPlagiarism@users.noreply.github.com> Date: Fri, 16 Dec 2022 00:53:27 +0500 Subject: [PATCH] return 1, where it should in Polls API --- VKAPI/Handlers/Polls.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VKAPI/Handlers/Polls.php b/VKAPI/Handlers/Polls.php index 1c20edd4..c3b7da33 100755 --- a/VKAPI/Handlers/Polls.php +++ b/VKAPI/Handlers/Polls.php @@ -74,7 +74,7 @@ final class Polls extends VKAPIRequestHandler try { $poll->vote($this->getUser(), explode(",", $answers_ids)); - return 0; + return 1; } catch(AlreadyVotedException $ex) { return 0; } catch(PollLockedException $ex) { @@ -95,7 +95,7 @@ final class Polls extends VKAPIRequestHandler try { $poll->revokeVote($this->getUser()); - return 0; + return 1; } catch(PollLockedException $ex) { $this->fail(15, "Access denied: Poll is locked or isn't revotable"); } catch(InvalidOptionException $ex) {