PHP Fatal error: Uncaught Error: Call to undefined method User::onlineBonus()

This commit is contained in:
Ivor Barhansky 2023-01-10 19:42:59 +02:00
parent b3810d2349
commit f913d8e4a3
2 changed files with 0 additions and 2 deletions

View File

@ -84,7 +84,6 @@ if ($u->room['file'] == "room_hostel" || $u->room['file'] == "post") {
#--------для общаги, и позже для почты
if ($u->info['online'] < time() - 60 || $u->info['afk'] != '') {
$filter->setOnline($u->info['8'], $u->info['id']);
$u->onlineBonus();
mysql_query(
"UPDATE `users` SET `online`='" . time() . "',`timeMain`='" . time(
) . "',`afk`='' WHERE `id`='" . $u->info['id'] . "' LIMIT 1"

View File

@ -27,7 +27,6 @@ if ($u->info['bithday'] == '01.01.1800') {
if ($u->info['online'] < time() - 60) {
mysql_query('UPDATE users SET online = unix_timestamp() WHERE id = ' . $u->info['id']);
$filter->setOnline($u->info['online'], $u->info['id']);
$u->onlineBonus();
}
function isModerOrAdmin($uinfo)