Fixed issue when there are no teachers

This commit is contained in:
Mark Nelson 2015-12-14 11:10:50 +08:00
parent 2416e8a3e0
commit 344710b51d

View file

@ -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;
}
}
/**