Commit fff8e760 authored by Arnaud Bey's avatar Arnaud Bey
Browse files

fix error when retrieving connected users

parent 206fb2fd
......@@ -51,9 +51,10 @@ class UserManager
$data = unserialize($data);
// If this is a session belonging to an anonymous user, do nothing
if (!array_key_exists('_security_main', $data)) {
if (!is_array($data) || !array_key_exists('_security_main', $data)) {
continue;
}
// Grab security data
$data = $data['_security_main'];
$data = unserialize($data);
......
......@@ -53,9 +53,9 @@
<div class="col-12">
<div class="alert alert-light" role="alert">
{{"connected"|trans}}: &nbsp;
{% for user in get_connected(500) %}
{{ pmacros.playerPicAndName(user) }} &nbsp;
{% endfor %}
{% for user in get_connected(500) %}
{{ pmacros.playerPicAndName(user) }} &nbsp;
{% endfor %}
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment