From e9df9f10dc4ef5a2524329e98f52ac7e195d478b Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 1 Apr 2023 15:11:12 +0200 Subject: [PATCH] Add check for player_deaths columns --- system/pages/characters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/pages/characters.php b/system/pages/characters.php index 253f5770..339bcddc 100644 --- a/system/pages/characters.php +++ b/system/pages/characters.php @@ -284,7 +284,7 @@ WHERE killers.death_id = '".$death['id']."' ORDER BY killers.final_hit DESC, kil $deaths[] = array('time' => $death['date'], 'description' => $description . '.'); } } - } 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`';