diff --git a/moderators.php b/moderators.php index f3a8a89..69afe34 100644 --- a/moderators.php +++ b/moderators.php @@ -4,7 +4,7 @@ if (!isset($_SESSION['uid'])) header("Location: index.php"); include_once "config.php"; $timer = time() - 60; -$data = db::c()->query('SELECT `login`,`status`,`align`,`room`,(SELECT `id` FROM `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `align` = 1 ORDER BY `login` ASC', $timer)->fetch_assoc(); +$data = db::c()->query('SELECT `login`,`status`,`align`,(SELECT 1 FROM `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `align` = 1 ORDER BY `login` ASC', $timer)->fetch_assoc(); ?> @@ -20,11 +20,11 @@ $data = db::c()->query('SELECT `login`,`status`,`align`,`room`,(SELECT `id` FROM '; - echo $data['align'] . $data['login'] . " — " . $data['status'] . " — " . $data['room'] . "
"; + echo ''; + echo "{$data['align'].$data['login']} — {$data['status']}
"; } else { echo ''; - echo $data['align'] . $data['login'] . " — " . $data['status'] . " — персонаж не в клубе
"; + echo "{$data['align'].$data['login']} — {$data['status']}
"; } } ?>