fixed widget closing for other players

This commit is contained in:
Steffen Schröder 2014-05-18 18:37:18 +02:00
parent c088a79041
commit 31cba03bba

View File

@ -258,7 +258,7 @@ class ManialinkManager implements ManialinkPageAnswerListener, CallbackListener
*/
public function closeWidget($player, $widgetId = false) {
if (!$widgetId) {
$this->hideManialink(self::MAIN_MLID);
$this->hideManialink(self::MAIN_MLID, $player);
$this->enableAltMenu($player);
// Trigger callback