fix: fix null error

This commit is contained in:
TheClashFruit 2023-12-13 18:24:39 +01:00 committed by Forgejo
parent 50e7be7627
commit 34ea46fc9a
Signed by untrusted user who does not match committer: Forgejo
GPG key ID: E59A305B48F15D31

View file

@ -31,7 +31,10 @@
$json = json_decode($res->body, true);
$twig->addGlobal('playerCount', count($json));
if($json != null) {
$twig->addGlobal('playerCount', count($json));
}
$twig->addGlobal('nations', $nations);
$router->get('/', function() {