1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-23 09:23:09 +02:00

Merge branch 'MDL-75390-master' of https://github.com/sarjona/moodle

This commit is contained in:
Sara Arjona 2022-08-17 17:08:17 +02:00
commit 5a3b4ac828

@ -436,7 +436,11 @@ class template {
$fields = $this->manager->get_fields();
list($formats, $files) = data_portfolio_caller::formats($fields, $entry);
$button->set_formats($formats);
return $button->to_html(PORTFOLIO_ADD_ICON_LINK);
$result = $button->to_html(PORTFOLIO_ADD_ICON_LINK);
if (is_null($result)) {
$result = '';
}
return $result;
}
/**