From 519cd2aaf492536505181361b1dae1e2403cf801 Mon Sep 17 00:00:00 2001 From: lopar Date: Fri, 21 Jun 2019 01:13:43 +0300 Subject: [PATCH] tests --- klan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klan.php b/klan.php index 26d5399..1dba798 100644 --- a/klan.php +++ b/klan.php @@ -87,7 +87,7 @@ if (isset($_POST['kr']) && ($_POST['kolv'] > 0)) { } if (!empty($_POST['login'])) { - $sok = db::c()->query('SELECT `id`, `status` FROM `users` WHERE `klan` = "?s" AND `login` = "?s"', $klan['id'], $user['id'])->fetch_assoc(); + $sok = db::c()->query('SELECT `id`, `status` FROM `users` WHERE `klan` = "?s" AND `login` = "?s"', $klan['id'], $_POST['login'])->fetch_assoc(); $st = strip_tags(str_replace("<", "<", str_replace(">", ">", $_POST['status'])), ""); if ($klan['glava'] == $sok['id']) { $st = "Глава клана";