Improve exceptions in DB classes

This commit is contained in:
Alex Cabal 2024-04-27 12:54:20 -05:00
parent fdca261133
commit e14988ff8c
4 changed files with 29 additions and 38 deletions

View file

@ -27,6 +27,8 @@ if(SITE_STATUS == SITE_STATUS_LIVE){
});
}
$GLOBALS['DbConnection'] = new DbConnection(DATABASE_DEFAULT_DATABASE, DATABASE_DEFAULT_HOST);
$GLOBALS['User'] = Session::GetLoggedInUser();
if($GLOBALS['User'] === null){