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