diff options
author | Valentin Popov <info@valentineus.link> | 2017-12-03 17:26:38 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-12-03 17:26:38 +0300 |
commit | 9d65bf2c2c30a06b625ce74f23fff56a131396d6 (patch) | |
tree | 886d5b55e7a392ec390838096339750196b6c00e | |
parent | 1c6438441dcdee1036bc202a3cf185260c7d86bd (diff) | |
download | tool_managertokens-9d65bf2c2c30a06b625ce74f23fff56a131396d6.tar.xz tool_managertokens-9d65bf2c2c30a06b625ce74f23fff56a131396d6.zip |
Added display of the missing role
-rw-r--r-- | classes/managertokens_table.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/managertokens_table.php b/classes/managertokens_table.php index 2930a97..6c77b8e 100644 --- a/classes/managertokens_table.php +++ b/classes/managertokens_table.php @@ -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"); |