aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-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");