Deleted refer
from users
table. Code cleanup.
This commit is contained in:
parent
c69ec70c38
commit
4447627a3c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user