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:
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user