Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
Merge branch 'wip-MDL-44501-master' of git://github.com/abgreeve/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jun 9, 2014
2 parents d663c5a + f3998ce commit 61e1166
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/data/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ public static function formats($fields, $record) {
$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) {
Expand Down

0 comments on commit 61e1166

Please sign in to comment.