git.cweiske.de
/
stouyapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88f30ce
)
Do not care about founder's name casing
v3.0.0
author
Christian Weiske
<cweiske@cweiske.de>
Thu, 19 Aug 2021 21:00:20 +0000
(23:00 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Thu, 19 Aug 2021 21:00:20 +0000
(23:00 +0200)
www/api/v1/gamers/me.php
patch
|
blob
|
history
diff --git
a/www/api/v1/gamers/me.php
b/www/api/v1/gamers/me.php
index fc941c77fd71455f2dbd4f62162234f2d65684d2..1f20900f6d40e063d388f9069b6ea883770578ba 100644
(file)
--- 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;