aboutsummaryrefslogtreecommitdiff
path: root/classes/managertokens_table.php
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-03 17:26:38 +0300
committerValentin Popov <info@valentineus.link>2017-12-03 17:26:38 +0300
commit9d65bf2c2c30a06b625ce74f23fff56a131396d6 (patch)
tree886d5b55e7a392ec390838096339750196b6c00e /classes/managertokens_table.php
parent1c6438441dcdee1036bc202a3cf185260c7d86bd (diff)
downloadtool_managertokens-9d65bf2c2c30a06b625ce74f23fff56a131396d6.tar.xz
tool_managertokens-9d65bf2c2c30a06b625ce74f23fff56a131396d6.zip
Added display of the missing role
Diffstat (limited to 'classes/managertokens_table.php')
-rw-r--r--classes/managertokens_table.php6
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");