From 895d500ca69bebebf12bf207601db05851b1c43b Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 19 Feb 2014 21:51:48 +0100 Subject: [PATCH] fix --- application/plugins/CustomVotes.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/application/plugins/CustomVotes.php b/application/plugins/CustomVotes.php index 16c24ac6..50e8a66e 100644 --- a/application/plugins/CustomVotes.php +++ b/application/plugins/CustomVotes.php @@ -298,12 +298,10 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP /** * Handle Standard Votes * - * @param array $callback + * @param $voteName + * @param $voteResult */ - public function handleVoteFinished(array $callback) { - $voteName = $callback[1]; - $voteResult = $callback[2]; - + public function handleVoteFinished($voteName, $voteResult) { if ($voteResult >= $this->currentVote->neededRatio) { // Call Closure if one exists if (is_callable($this->currentVote->function)) {