Add protection, nothing important - thrown exception before

This commit is contained in:
slawkens
2023-07-22 14:03:57 +02:00
parent 5791d1e7f9
commit 4a629b4418
5 changed files with 10 additions and 0 deletions

View File

@@ -1,4 +1,6 @@
<?php
defined('MYAAC') or die('Direct access not allowed!');
$balance = ($db->hasColumn('players', 'balance') ? $db->query('SELECT `balance`, `id`, `name`,`level` FROM `players` ORDER BY `balance` DESC LIMIT 10;') : 0);
$twig->display('balance.html.twig', array(