errors show

This commit is contained in:
lopar 2020-06-24 10:17:52 +03:00
parent 7f3f422126
commit 6227042134
2 changed files with 1 additions and 3 deletions

View File

@ -192,9 +192,6 @@ if (isset($_SESSION['uid'])) {
} }
} }
function savecavedata($cavedata, $caveleader, $floor) function savecavedata($cavedata, $caveleader, $floor)
{ {
$f1 = fopen("cavedata/$caveleader-$floor.dat", "wb+"); $f1 = fopen("cavedata/$caveleader-$floor.dat", "wb+");

View File

@ -18,6 +18,7 @@ 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 $e->getTrace();
} }
if ($user['battle'] != 0) { if ($user['battle'] != 0) {
header('location: fbattle.php'); header('location: fbattle.php');