diff --git a/admin/admin.php b/admin/admin.php
index 995809d..71b24e0 100644
--- a/admin/admin.php
+++ b/admin/admin.php
@@ -1005,8 +1005,7 @@ while ($row = $prs->fetch_assoc()) {
}
# Системное сообщение.
if ($_POST['newsmsg']) {
- $from = '';
- AddChatSystem($from . $_POST['newsmsg'] . "");
+ AddChatSystem($_POST['newsmsg']);
echo "Системное сообщение отправлено.";
}
# Меняем статусы
diff --git a/chat.php b/chat.php
index b93b430..44f59bc 100644
--- a/chat.php
+++ b/chat.php
@@ -30,7 +30,7 @@ FROM `chat` ORDER BY `id` ASC LIMIT 50');
$d = new DateTime($message['msgdate']);
$m = htmlspecialchars($message['msg']);
if ($message['type'] == 'sys') {
- echo sprintf('%s %s', $d->format('H:i'),$m)."
";
+ echo sprintf('%s %s', $d->format('H:i'),$m)."
";
} else echo sprintf('%s [%s]: %s', $d->format('H:i'),$message['from'],$m)."
";
}
}