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
Branches
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ class interaction_remaining_table extends interaction_table {
}
// Otherwise, show latest action commited by user.
global $CFG;
if ($row->userid === -1) {
if ($row->userid == -1) {
$userlink = get_string("anonymous_user");
} else {
$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