mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 19:23:27 +02:00
Avoid globals where possible
$logged => logged() $account_logged => accountLogged()
This commit is contained in:
@@ -4,7 +4,7 @@ use MyAAC\Settings;
|
||||
|
||||
function updateHighscoresIdsHidden(): void
|
||||
{
|
||||
global $db;
|
||||
$db = app()->get('database');
|
||||
|
||||
if (!$db->hasTable('players')) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user