small fix

This commit is contained in:
kremsy 2014-03-01 11:18:22 +01:00 committed by Steffen Schröder
parent 7c4a038722
commit 734619e744

View File

@ -209,10 +209,10 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
public function addVoteMenuItem(Control $control, $order = 0, $description = null) { public function addVoteMenuItem(Control $control, $order = 0, $description = null) {
if (!isset($this->voteMenuItems[$order])) { if (!isset($this->voteMenuItems[$order])) {
$this->voteMenuItems[$order] = array(); $this->voteMenuItems[$order] = array();
}
array_push($this->voteMenuItems[$order], array($control, $description)); array_push($this->voteMenuItems[$order], array($control, $description));
krsort($this->voteMenuItems); krsort($this->voteMenuItems);
} }
}
/** /**
* Chat Vote * Chat Vote