errors show

This commit is contained in:
lopar 2020-06-24 10:19:38 +03:00
parent 6227042134
commit 2a2507e0c4

View File

@ -18,7 +18,11 @@ try {
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);
} catch (\Krugozor\Database\Mysql\Exception $e) {
echo "<div style='background-color: #ffaaaa;'>Ошибка: " . $e->getMessage() . "<br> В файле: " . $e->getFile() . " (" . $e->getLine() . ")</div>";
echo $e->getTrace();
foreach($e->getTrace() as $result) {
echo $result['type'], '<br>';
}
}
if ($user['battle'] != 0) {
header('location: fbattle.php');