diff --git a/functions.php b/functions.php index 6af34ac..8997f8a 100644 --- a/functions.php +++ b/functions.php @@ -551,7 +551,7 @@ header("Cache-Control: no-cache"); function level_up($uid) { global $exptable; - $us = db::c()->query('SELECT `id`, `login`, `level`, `money`, `exp`, `vinos`, `nextup`, `stats`, `master`, `maxhp`, `refer`, `ip`, `in_tower` FROM `users` WHERE `id` =?i', $uid)->fetch_assoc(); + $us = db::c()->query('SELECT `id`, `login`, `level`, `money`, `exp`, `vinos`, `nextup`, `stats`, `master`, `maxhp`, `ip`, `in_tower` FROM `users` WHERE `id` =?i', $uid)->fetch_assoc(); if (isset($us['id'])) { if ($us['exp'] >= $us['nextup'] && !$us['in_tower']) { if ($exptable[$us['nextup']][4] == 1) {