RuntimeException instead of die()

This commit is contained in:
slawkens
2020-02-12 23:20:16 +01:00
parent 38693521b3
commit 13d0718780
9 changed files with 12 additions and 14 deletions

View File

@@ -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();