Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathieu Loiseau
MagicWord
Commits
fff8e760
Commit
fff8e760
authored
May 28, 2021
by
Arnaud Bey
Browse files
fix error when retrieving connected users
parent
206fb2fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
application/src/MagicWordBundle/Manager/UserManager.php
View file @
fff8e760
...
...
@@ -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
);
...
...
application/src/MagicWordBundle/Resources/views/Default/home.html.twig
View file @
fff8e760
...
...
@@ -53,9 +53,9 @@
<div
class=
"col-12"
>
<div
class=
"alert alert-light"
role=
"alert"
>
{{
"connected"
|
trans
}}
:
{%
for
user
in
get_connected
(
500
)
%}
{{
pmacros.playerPicAndName
(
user
)
}}
{%
endfor
%}
{%
for
user
in
get_connected
(
500
)
%}
{{
pmacros.playerPicAndName
(
user
)
}}
{%
endfor
%}
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment