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('players', 'lastlogin') ? $db->query('SELECT name, level, lastlogin FROM players ORDER BY lastlogin DESC LIMIT 10;') : 0);
$twig->display('lastlogin.html.twig', array(
'players' => $players,