mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'wip-MDL-44501-26' of git://github.com/abgreeve/moodle into MOODLE_26_STABLE
This commit is contained in:
commit
4d7544a3a0
1 changed files with 3 additions and 1 deletions
|
@ -348,7 +348,9 @@ class data_portfolio_caller extends portfolio_module_caller_base {
|
|||
$includedfiles = array();
|
||||
foreach ($fields as $singlefield) {
|
||||
if (is_callable(array($singlefield, 'get_file'))) {
|
||||
$includedfiles[] = $singlefield->get_file($record->id);
|
||||
if ($file = $singlefield->get_file($record->id)) {
|
||||
$includedfiles[] = $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (count($includedfiles) == 1 && count($fields) == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue