fixed bug not showing mods in adminlist

This commit is contained in:
kremsy 2015-01-13 18:05:04 +01:00
parent c786a89704
commit 888356cf16

View File

@ -242,7 +242,7 @@ class AuthenticationManager implements CallbackListener {
public function getAdmins($authLevel = self::AUTH_LEVEL_MODERATOR) { public function getAdmins($authLevel = self::AUTH_LEVEL_MODERATOR) {
$mysqli = $this->maniaControl->getDatabase()->getMysqli(); $mysqli = $this->maniaControl->getDatabase()->getMysqli();
$query = "SELECT `login` FROM `" . PlayerManager::TABLE_PLAYERS . "` $query = "SELECT `login` FROM `" . PlayerManager::TABLE_PLAYERS . "`
WHERE `authLevel` > " . $authLevel . " WHERE `authLevel` >= " . $authLevel . "
ORDER BY `authLevel` DESC;"; ORDER BY `authLevel` DESC;";
$result = $mysqli->query($query); $result = $mysqli->query($query);
if (!$result) { if (!$result) {