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,7 +48,9 @@ class element extends \mod_customcert\element {
|
|||
* @return string the text
|
||||
*/
|
||||
public function save_unique_data($data) {
|
||||
return $data->teacher;
|
||||
if (!empty($data->teacher)) {
|
||||
return $data->teacher;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue