small fixes

This commit is contained in:
lopar 2019-02-16 01:08:56 +02:00
parent 9816feacc7
commit 2ce693aa80
1 changed files with 2 additions and 2 deletions

View File

@ -976,8 +976,8 @@ echo "</div>";
<?php
# Телеграф.
if (!empty($_POST['receiver']) AND !empty($_POST['tgmsg'])) {
$receiverId = db::c()->query('SELECT `id` FROM `users` WHERE `login`= "?s"',$_POST['receiver'])->fetch_assoc();
telegraph($receiverId,$_POST['tgmsg']);
$receiverId = db::c()->query('SELECT `id` FROM `users` WHERE `login`= "?s"',$_POST['receiver'])->fetch_row();
telegraph($receiverId[0],$_POST['tgmsg']);
echo "Успешно.";
}
# Показывает невидимок.