MDL-54941 glossary: Correct variable naming for entry files
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 3 Aug 2016 06:33:52 +0000 (14:33 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 3 Aug 2016 06:33:53 +0000 (14:33 +0800)
mod/glossary/classes/external.php

index 8dc09d9..a0e254f 100644 (file)
@@ -142,7 +142,7 @@ class mod_glossary_external extends external_api {
         $entry->attachment = !empty($entry->attachment) ? 1 : 0;
         $entry->attachments = array();
         if ($entry->attachment) {
-            $files = external_util::get_area_files($context->id, 'mod_glossary', 'attachment', $entry->id);
+            $entry->attachments = external_util::get_area_files($context->id, 'mod_glossary', 'attachment', $entry->id);
         }
     }