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) {