From ec6579ea6b6904f02e4481f2517c77f1b0f5d341 Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Tue, 12 Feb 2019 16:46:28 +0200 Subject: [PATCH] =?UTF-8?q?Telegraph=20to=20chat=20on-login=20(=D0=B0=20?= =?UTF-8?q?=D1=81=D0=B0=D0=BC=D0=BE=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B8=20=D0=BE=D1=82=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=B8=D1=82=D0=B5=D0=BB=D1=8F,=20=D0=B7=D0=BD=D0=B0?= =?UTF-8?q?=D1=87=D0=B8=D1=82,=20=D0=B7=D0=B0=D0=BA=D1=80=D1=8B=D1=81?= =?UTF-8?q?=D0=B8=D0=BB=D0=B8=20=D0=B8=20=D0=BD=D0=B5=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B0=D1=91=D0=BC...).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enter.php b/enter.php index 2af375b..7ac6a97 100644 --- a/enter.php +++ b/enter.php @@ -48,7 +48,7 @@ if ($username && $password) { $sms = db::c()->query('SELECT * FROM `telegraph` WHERE `receiver` = ?i', $data['id']); while ($res = $sms->fetch_assoc()) { - db::c()->query('INSERT INTO `chat` (`uid`, `msg`, `type`) VALUES (?i, "?s", "?s")', $uid, $msg, 'sms'); + db::c()->query('INSERT INTO `chat` (`touid`, `msg`, `type`) VALUES (?i, "?s", "?s")', $res['receiver'], $res['msg'], 'sms'); } db::c()->query('DELETE FROM `telegraph` WHERE `receiver` = ?i', $data['id']); header("Location: fight.php");