diff --git a/chat.php b/chat.php
index b2119bd..3292b5f 100644
--- a/chat.php
+++ b/chat.php
@@ -35,16 +35,16 @@ function show_messages()
FROM `chat` ORDER BY `id` LIMIT 50');
} catch (\Krugozor\Database\Mysql\Exception $e) {
echo "DB Error: ". $e->getMessage() . PHP_EOL;
- echo "File: " . $e->getFile() . "[".$e->getLine()."]". PHP_EOL;
+ echo "File: " . $e->getFile() . " (".$e->getLine().")". PHP_EOL;
}
while ($message = $chat->fetch_assoc()) {
$d = new DateTime($message['msgdate']);
$m = htmlspecialchars($message['msg']);
if ($message['type'] == 'sys') { /* Системка */
- echo sprintf('%s %s', $d->format('H:i'),$m).PHP_EOL;
+ echo sprintf("%s %s", $d->format('H:i'),$m).PHP_EOL;
} elseif ($message['type'] == 'sms') { /* Телеграмма */
- echo sprintf('[Телеграмма]: %s %s', $d->format('H:i'),$m).PHP_EOL;
+ echo sprintf("[Телеграмма]: %s %s", $d->format('H:i'),$m).PHP_EOL;
} else {echo sprintf('%s [%s]: %s', $d->format('H:i'),$message['from'],$m).PHP_EOL;}
}
}