From cb21101266bc34847e77c1879fe47d01d3eb5983 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Thu, 11 Jan 2018 20:20:52 +0100 Subject: Rank icons --- html/includes/functions.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'html/includes') diff --git a/html/includes/functions.php b/html/includes/functions.php index fb24308..99baeae 100755 --- a/html/includes/functions.php +++ b/html/includes/functions.php @@ -342,18 +342,15 @@ function RankImageOrText($pid, $name, $rank, $gid, $gamename, $mini = true, $for $rank = $r_no['no']; } + $img = ''; $ranktext = $rank.ordinal($rank); if (file_exists("assets/images/ranks/$rank.png")) { - $width = ($mini) ? 15 : 15; - $height = ($mini) ? 12 : 12; - $img = ''. $rank .''; - } else { - $img = ''; + $img = ''. $rank .''; } $moveimg = ''; - if ($rankchange !== NULL) { - $moveimg = ' '. RankMovement($rankchange); + if ($rankchange !== null) { + $moveimg = ' '. RankMovement($rankchange); } if (empty($format)) { -- cgit