From 304e1ecc80901a0f7834051d3f1dea97b62e9578 Mon Sep 17 00:00:00 2001 From: lopar Date: Wed, 24 Jun 2020 10:22:01 +0300 Subject: [PATCH] errors show --- main.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main.php b/main.php index 2f02760..f162071 100644 --- a/main.php +++ b/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 "
Ошибка: " . $e->getMessage() . "
В файле: " . $e->getFile() . " (" . $e->getLine() . ")
"; - - foreach($e->getTrace() as $result) { - echo $result['type'], '
'; - } - + //echo "
Ошибка: " . $e->getMessage() . "
В файле: " . $e->getFile() . " (" . $e->getLine() . ")
"; + echo "
Ошибка: " . $e->getMessage() . "
В файле: " . $e->getTraceAsString() . " (" . $e->getLine() . ")
"; } if ($user['battle'] != 0) { header('location: fbattle.php');