fixed bug not showing mods in adminlist
This commit is contained in:
parent
c786a89704
commit
888356cf16
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user