mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-30 23:16:49 +01:00
Add protection, nothing important - thrown exception before
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user