From 9985d2f20c21b6d4d338a6a47af5cdb616ee2345 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Sat, 2 Dec 2023 02:23:36 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=D1=8B=20mysql=5F?= =?UTF-8?q?query.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules_data/moder/usedeletinfo.php | 2 +- modules_data/moder/usem1.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules_data/moder/usedeletinfo.php b/modules_data/moder/usedeletinfo.php index 8be98f15..a8de8266 100644 --- a/modules_data/moder/usedeletinfo.php +++ b/modules_data/moder/usedeletinfo.php @@ -8,7 +8,7 @@ if ($p['deletInfo'] != 1) { return; } -$uu = \Core\Db::getRow('select * from users where login = ? order by id limit 1', [$_POST['logingo']]); +$uu = \Core\Db::getRow('select id, login, info_delete from users where login = ? order by id limit 1', [$_POST['logingo']]); if (!isset($uu['id'])) { $uer = 'Персонаж не найден.'; diff --git a/modules_data/moder/usem1.php b/modules_data/moder/usem1.php index d2a119d0..4fc73dcc 100644 --- a/modules_data/moder/usem1.php +++ b/modules_data/moder/usem1.php @@ -8,7 +8,7 @@ if ($p['m1'] != 1 && $p['citym1'] != 1) { return; } -$uu = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `login` = "' . mysql_real_escape_string($_POST['logingo']) . '" LIMIT 1')); +$uu = \Core\Db::getRow('select id, login from users where login = ? order by id limit 1', [$_POST['logingo']]); if (!isset($uu['id'])) { $uer = 'Персонаж не найден в этом городе'; return;