Added display of the missing role
This commit is contained in:
		| @@ -137,6 +137,12 @@ class tool_managertokens_table extends table_sql { | |||||||
|     public function col_targetid($row) { |     public function col_targetid($row) { | ||||||
|         $html = $row->targetid; |         $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") { |         if ($row->targettype == "user") { | ||||||
|             /* Specifies the user name */ |             /* Specifies the user name */ | ||||||
|             $linktext = new lang_string("user", "moodle"); |             $linktext = new lang_string("user", "moodle"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user