From: Christian Weiske Date: Thu, 19 Aug 2021 21:00:20 +0000 (+0200) Subject: Do not care about founder's name casing X-Git-Tag: v3.0.0 X-Git-Url: https://git.cweiske.de/stouyapi.git/commitdiff_plain/refs/tags/v3.0.0 Do not care about founder's name casing --- diff --git a/www/api/v1/gamers/me.php b/www/api/v1/gamers/me.php index fc941c7..1f20900 100644 --- a/www/api/v1/gamers/me.php +++ b/www/api/v1/gamers/me.php @@ -41,7 +41,7 @@ if ($row === false) { $data = json_decode(file_get_contents('me.json')); $data->gamer->username = $row['username']; -switch ($row['username']) { +switch (strtolower($row['username'])) { case 'cweiske': case 'szeraax': $data->gamer->founder = true;