fix undefined variable

This commit is contained in:
Beu 2021-08-22 10:33:49 +02:00
parent 6caee64c4e
commit e35f61d920

View File

@ -13,7 +13,6 @@ use ManiaControl\Callbacks\Callbacks;
use ManiaControl\Callbacks\Structures\Common\BasePlayerTimeStructure; use ManiaControl\Callbacks\Structures\Common\BasePlayerTimeStructure;
use ManiaControl\Callbacks\Structures\TrackMania\OnScoresStructure; use ManiaControl\Callbacks\Structures\TrackMania\OnScoresStructure;
use ManiaControl\Callbacks\Structures\TrackMania\OnWayPointEventStructure; use ManiaControl\Callbacks\Structures\TrackMania\OnWayPointEventStructure;
use ManiaControl\Callbacks\TimerListener;
use ManiaControl\Logger; use ManiaControl\Logger;
use ManiaControl\ManiaControl; use ManiaControl\ManiaControl;
use ManiaControl\Manialinks\ManialinkPageAnswerListener; use ManiaControl\Manialinks\ManialinkPageAnswerListener;
@ -38,12 +37,12 @@ use MatchManagerSuite\MatchManagerCore;
* @author Beu (based on MatchManagerWidget by jonthekiller) * @author Beu (based on MatchManagerWidget by jonthekiller)
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3 * @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/ */
class MatchManagerWidget implements ManialinkPageAnswerListener, CallbackListener, TimerListener, Plugin { class MatchManagerWidget implements ManialinkPageAnswerListener, CallbackListener, Plugin {
/* /*
* Constants * Constants
*/ */
const PLUGIN_ID = 153; const PLUGIN_ID = 153;
const PLUGIN_VERSION = 1.1; const PLUGIN_VERSION = 1.2;
const PLUGIN_NAME = 'MatchManager Widget'; const PLUGIN_NAME = 'MatchManager Widget';
const PLUGIN_AUTHOR = 'Beu'; const PLUGIN_AUTHOR = 'Beu';
@ -297,6 +296,8 @@ class MatchManagerWidget implements ManialinkPageAnswerListener, CallbackListene
} else { } else {
$players = []; $players = [];
$specs = []; $specs = [];
$diffspecs = [];
$diffplayers = [];
if (isset($login)) { if (isset($login)) {
$player = $this->maniaControl->getPlayerManager()->getPlayer($login); $player = $this->maniaControl->getPlayerManager()->getPlayer($login);
@ -511,5 +512,3 @@ class MatchManagerWidget implements ManialinkPageAnswerListener, CallbackListene
} }
} }
} }