forked from blurryface/Website
fix: fix null error
This commit is contained in:
parent
50e7be7627
commit
34ea46fc9a
|
@ -31,7 +31,10 @@
|
||||||
|
|
||||||
$json = json_decode($res->body, true);
|
$json = json_decode($res->body, true);
|
||||||
|
|
||||||
|
if($json != null) {
|
||||||
$twig->addGlobal('playerCount', count($json));
|
$twig->addGlobal('playerCount', count($json));
|
||||||
|
}
|
||||||
|
|
||||||
$twig->addGlobal('nations', $nations);
|
$twig->addGlobal('nations', $nations);
|
||||||
|
|
||||||
$router->get('/', function() {
|
$router->get('/', function() {
|
||||||
|
|
Loading…
Reference in a new issue