mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-15 02:04:54 +02:00
Avoid globals where possible
$logged => logged() $account_logged => accountLogged()
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
function query($query)
|
||||
{
|
||||
global $db, $error;
|
||||
global $error;
|
||||
|
||||
$db = app()->get('database');
|
||||
|
||||
try {
|
||||
$db->query($query);
|
||||
|
Reference in New Issue
Block a user