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!');
$players = ($db->hasColumn('accounts', 'created') ? $db->query('SELECT `created`, `' . (USE_ACCOUNT_NAME ? 'name' : 'id') . '` as `name` FROM `accounts` ORDER BY `created` DESC LIMIT 10;') : 0);
$twig->display('created.html.twig', array(