mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +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();
|
||||
|
@@ -46,8 +46,7 @@ foreach($posts as &$post)
|
||||
$player = $post['player'];
|
||||
$player->load($post['player_id']);
|
||||
if(!$player->isLoaded()) {
|
||||
error('Forum error: Player not loaded.');
|
||||
die();
|
||||
throw new RuntimeException('Forum error: Player not loaded.');
|
||||
}
|
||||
|
||||
if($config['characters']['outfit']) {
|
||||
|
Reference in New Issue
Block a user