Added display of the missing role

This commit is contained in:
Valentin Popov 2017-12-03 18:26:38 +04:00
parent 1c6438441d
commit 9d65bf2c2c

View File

@ -137,6 +137,12 @@ class tool_managertokens_table extends table_sql {
public function col_targetid($row) {
$html = $row->targetid;
/* The role is absent */
if ($row->targettype == "null") {
$html = new lang_string("none", "moodle");
}
/* A role is a user */
if ($row->targettype == "user") {
/* Specifies the user name */
$linktext = new lang_string("user", "moodle");