Added display of the missing role
This commit is contained in:
parent
1c6438441d
commit
9d65bf2c2c
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user