diff --git a/clan.php b/clan.php
index f69d208..785decb 100644
--- a/clan.php
+++ b/clan.php
@@ -9,7 +9,7 @@ if (!$user->clan) {
die(err('Вы не состоите в клане!'));
}
try {
- $clanRow = db::c()->query('SELECT * FROM `clans` WHERE `id` = ?i', $user['klan'])->fetch_assoc();
+ $clanRow = db::c()->query('SELECT * FROM `clans` WHERE `id` = ?i', $user->clan)->fetch_assoc();
$polno = unserialize($clanRow['vozm']) ?? [];
} catch (Exception $e) {
echo "MYSQL_ERROR: Таблицы clans не существует! Вся панель — одна сплошная ошибка!";
@@ -42,7 +42,7 @@ if ($kr && $kolv > 0) {
$status = 'Не хватает денег!';
}
}
-if ($login && $action == 'add_member' && $polno[$user['id']][0] == 1) {
+if ($login && $action == 'add_member' && $polno[$user->id][0] == 1) {
$sok = db::c()->query('SELECT id, level, clan FROM users WHERE align = 0 AND login = "?s"', $login)->fetch_assoc();
$proverka = db::c()->query('SELECT 1 FROM users_effects WHERE type = 20 AND owner_id = ?i', $sok['id'])->getNumRows();
if (!$proverka) {
@@ -57,7 +57,7 @@ if ($login && $action == 'add_member' && $polno[$user['id']][0] == 1) {
$status = 'Не хватает денег, или персонажа не существует.';
}
}
-if ($login && $action == 'remove_member' && $polno[$user['id']][0] == 1) {
+if ($login && $action == 'remove_member' && $polno[$user->id][0] == 1) {
$sok = db::c()->query('SELECT id FROM users WHERE clan = "?s" AND login = "?s"', $clanRow['id'], $login)->fetch_assoc();
if ($sok['id'] != $clanRow['glava'] && $user->money >= COST_REMOVE_MEMBER) {
db::c()->query('UPDATE users SET money = money - ?i WHERE id = ?i', COST_REMOVE_MEMBER, $_SESSION['uid']);
@@ -120,7 +120,7 @@ $clan_memberlist = db::c()->query('SELECT `id`, `login`, `status`, `level`, `roo
Количество рейтинговых очков клана: = $clanRow['rating'] ?>
-
+ id][0] == 1): ?>