Fixed issue when there are no teachers
This commit is contained in:
parent
2416e8a3e0
commit
344710b51d
1 changed files with 3 additions and 1 deletions
|
@ -48,8 +48,10 @@ class element extends \mod_customcert\element {
|
|||
* @return string the text
|
||||
*/
|
||||
public function save_unique_data($data) {
|
||||
if (!empty($data->teacher)) {
|
||||
return $data->teacher;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles rendering the element on the pdf.
|
||||
|
|
Loading…
Reference in a new issue