Skip to content
Snippets Groups Projects
Commit ed76d672 authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Fixed equals check, since database might return -1 as string

parent 2e92173a
No related branches found
No related tags found
No related merge requests found
...@@ -164,7 +164,7 @@ class interaction_remaining_table extends interaction_table { ...@@ -164,7 +164,7 @@ class interaction_remaining_table extends interaction_table {
} }
// Otherwise, show latest action commited by user. // Otherwise, show latest action commited by user.
global $CFG; global $CFG;
if ($row->userid === -1) { if ($row->userid == -1) {
$userlink = get_string("anonymous_user"); $userlink = get_string("anonymous_user");
} else { } else {
$userlink = \html_writer::link($CFG->wwwroot . '/user/profile.php?id=' . $row->userid, fullname($row)); $userlink = \html_writer::link($CFG->wwwroot . '/user/profile.php?id=' . $row->userid, fullname($row));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment