Skip to content

Commit

Permalink
Add check for player_deaths columns
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Apr 1, 2023
1 parent d34f7eb commit 37a27b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/pages/characters.php
Expand Up @@ -285,7 +285,7 @@ function retrieve_former_name($name)
}
}
}
else {
else if ($db->hasColumn('player_deaths', 'time') && $db->hasColumn('player_deaths', 'level') && $db->hasColumn('player_deaths', 'killed_by') && $db->hasColumn('player_deaths', 'is_player')) {
$mostdamage = '';
if($db->hasColumn('player_deaths', 'mostdamage_by'))
$mostdamage = ', `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`';
Expand Down

0 comments on commit 37a27b8

Please sign in to comment.