mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-20 12:33:27 +02:00
RuntimeException instead of die()
This commit is contained in:
@@ -57,8 +57,7 @@ if(isset($last_threads[0]))
|
||||
|
||||
$player->load($thread['player_id']);
|
||||
if(!$player->isLoaded()) {
|
||||
error('Forum error: Player not loaded.');
|
||||
die();
|
||||
throw new RuntimeException('Forum error: Player not loaded.');
|
||||
}
|
||||
|
||||
$player_account = $player->getAccount();
|
||||
|
Reference in New Issue
Block a user