accesslib MDL-22527 (undoing file accidentally committed with previous change - grr eclipse - sorry)

This commit is contained in:
Sam Marshall
2010-05-21 11:52:40 +00:00
parent 31c9330392
commit ca3d4806a3
+2 -2
View File
@@ -1289,8 +1289,8 @@ function glossary_print_attachments($entry, $cm, $type=NULL, $align="left") {
return '';
}
if ($entry->sourceglossaryid != $cm->instance) {
if (!$maincm = get_coursemodule_from_instance('glossary', $entry->sourceglossaryid)) {
if ($entry->sourceglossaryid == $cm->instance) {
if (!$maincm = get_coursemodule_from_instance('glossary', $entry->glossaryid)) {
return '';
}
$filecontext = get_context_instance(CONTEXT_MODULE, $maincm->id);