Баг в админке

This commit is contained in:
lopar 2018-06-24 15:16:10 +03:00
parent 71002160b9
commit 91901859ae

View File

@ -990,8 +990,8 @@ if ($_POST['grn'] && $_POST['gr']) echo telegraph($_POST['grn'], $_POST['gr']);
# Показывает невидимок.
echo '<legend>Невидимки:</legend>';
$prs = db::c()->query('SELECT `id`, `login` FROM `users` WHERE `invis` = 1 ORDER BY `id` DESC');
while ($prs->fetch_assoc()) {
$effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = "?s" AND `type` = 1022 LIMIT 1', $prs['id'])->fetch_assoc();
while ($r = $prs->fetch_assoc()) {
$effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = "?s" AND `type` = 1022 LIMIT 1', $r['id'])->fetch_assoc();
echo '<b>[id] = ' . $prs['id'] . ', ' . $prs['login'] . ' - [невидимка ' . substr($effect[0], strlen($effect['time']) - 4) . ']</b><br />';
}
# Системное сообщение.