From 9d65bf2c2c30a06b625ce74f23fff56a131396d6 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sun, 3 Dec 2017 18:26:38 +0400 Subject: Added display of the missing role --- classes/managertokens_table.php | 6 ++++++ 1 file changed, 6 insertions(+) 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"); -- cgit v1.2.3