errors show
This commit is contained in:
parent
2a2507e0c4
commit
304e1ecc80
8
main.php
8
main.php
@ -17,12 +17,8 @@ $tmaz = time();
|
||||
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>";
|
||||
|
||||
foreach($e->getTrace() as $result) {
|
||||
echo $result['type'], '<br>';
|
||||
}
|
||||
|
||||
//echo "<div style='background-color: #ffaaaa;'>Ошибка: " . $e->getMessage() . "<br> В файле: " . $e->getFile() . " (" . $e->getLine() . ")</div>";
|
||||
echo "<div style='background-color: #ffaaaa;'>Ошибка: " . $e->getMessage() . "<br> В файле: " . $e->getTraceAsString() . " (" . $e->getLine() . ")</div>";
|
||||
}
|
||||
if ($user['battle'] != 0) {
|
||||
header('location: fbattle.php');
|
||||
|
Loading…
Reference in New Issue
Block a user