убрал пустой статус
This commit is contained in:
parent
e6bd58cbd0
commit
0d88ccf4bc
1
clan.php
1
clan.php
@ -200,6 +200,7 @@ if (!empty($_POST['login']) AND $_POST['action'] == 'change_owner' AND $klan['gl
|
||||
$data = db::c()->query('SELECT `id`, `login`, `status`, `level`, `room`, `align`, (select `id` from `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `klan` = ?i ORDER BY `online` DESC , `login` ASC', (time() - 60), $klan['id']);
|
||||
while ($row = $data->fetch_assoc()) {
|
||||
if ($row['id'] == $klan['glava']) $row['status'] = '<b style="color: #008080;">Глава клана</b>';
|
||||
if (empty($row['status'])) $row['status'] = 'Боец';
|
||||
if ($row['online'] > 0) {
|
||||
echo '<div style="color: gray;">';
|
||||
echo '💡 <A HREF="javascript:top.AddToPrivate(\'', nick::id($row['id'])->short(), '\', top.CtrlPress)" target=refreshed><img src="i/lock.gif"></A>';
|
||||
|
Loading…
Reference in New Issue
Block a user