Рефакторинг.
This commit is contained in:
parent
8b2accf246
commit
22c2348ed4
@ -1321,20 +1321,19 @@ class User
|
||||
'`uid` = "' . $this->info['id'] . '" AND `time` >= ' . (time() - $timeforwait) . ' AND `vars` = "go_homeworld" LIMIT 1',
|
||||
1
|
||||
);
|
||||
if ($this->info['level'] == 0 || $this->info['active'] != '' || $this->info['inTurnir'] > 0 || $this->info['inTurnirnew'] > 0 || $this->info['zv'] > 0 || $this->info['dnow'] > 0) {
|
||||
if (
|
||||
$this->info['level'] == 0 ||
|
||||
$this->info['active'] != '' ||
|
||||
$this->info['inTurnir'] > 0 ||
|
||||
$this->info['inTurnirnew'] > 0 ||
|
||||
$this->info['zv'] > 0 ||
|
||||
$this->info['dnow'] > 0 ||
|
||||
isset($this->info['noreal']) ||
|
||||
Db::getValue('select count(*) from katok_zv where uid = ?', [$this->info['id']]) > 0
|
||||
) {
|
||||
$hgo['id'] = true;
|
||||
}
|
||||
if (isset($this->info['noreal']) || $this->info['dnow'] > 0) {
|
||||
$hgo['id'] = true;
|
||||
}
|
||||
if (!isset($hgo['id'])) {
|
||||
$ku = mysql_fetch_array(
|
||||
mysql_query('SELECT `id` FROM `katok_zv` WHERE `uid` = ' . $this->info['id'])
|
||||
);
|
||||
if (isset($ku['id'])) {
|
||||
$hgo['id'] = true;
|
||||
}
|
||||
}
|
||||
|
||||
return $hgo ?? [];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user