fixed bug

This commit is contained in:
kremsy
2014-05-01 17:35:31 +02:00
committed by Steffen Schröder
parent 317d6c506b
commit b18e736c57
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ class PlayerActions {
}
$target = $this->maniaControl->playerManager->getPlayer($targetLogin);
if (!$admin || !$target) {
if (!$admin || !$target || $target->isSpectator) {
return;
}