WIP: перед введенимем класса Fighter.php
This commit is contained in:
@@ -266,7 +266,11 @@ if (isset($uer)) {
|
||||
<!-- pos1 -->
|
||||
<?php
|
||||
//Персонаж онлайн
|
||||
$battleid = Db::getValue('select id from battle where id = ? and time_over = 0', [$inf['battle']]);
|
||||
if ($inf['battle']) {
|
||||
$b = new \Model\BattleModel($inf['battle']);
|
||||
$battleid = $b->battle->time_over == 0 ? $b->battle->id : false;
|
||||
unset($b);
|
||||
}
|
||||
|
||||
if ($inf['room'] != 303) {
|
||||
if ($inf['online'] > time() - 520 && $inf['banned'] == 0 && $inf['invis'] != 1 && $inf['invis'] < time()) {
|
||||
|
||||
Reference in New Issue
Block a user