diff --git a/admin/admin.php b/admin/admin.php index 725158f..d8c004b 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -990,8 +990,8 @@ if ($_POST['grn'] && $_POST['gr']) echo telegraph($_POST['grn'], $_POST['gr']); # Показывает невидимок. echo 'Невидимки:'; $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 '[id] = ' . $prs['id'] . ', ' . $prs['login'] . ' - [невидимка ' . substr($effect[0], strlen($effect['time']) - 4) . ']
'; } # Системное сообщение.