diff --git a/main.php b/main.php index 4fbda0a..59959a3 100644 --- a/main.php +++ b/main.php @@ -399,8 +399,8 @@ if ($_POST['setshadowclan']) { } if ($_GET['setch']) { - $online = mysql_query("SELECT * FROM `online` WHERE `real_time` >= '" . (time() - 60) . "'"); - while ($v = mysql_fetch_array($online)) { + $online = db::c()->query('SELECT * FROM `online` WHERE `real_time` >= ?i', (time() - 60)); + while ($v = $online->fetch_assoc()) { $or[$v['room']]++; } ?> @@ -441,7 +441,7 @@ if ($_GET['setch']) {