mirror of
https://github.com/moodle/moodle.git
synced 2025-05-13 03:36:09 +02:00
MDL-16075 fixed glossary export regression
This commit is contained in:
parent
1f0e77025d
commit
272c2c92a1
@ -17,7 +17,7 @@
|
||||
if ( ! $cm ) {
|
||||
$PermissionGranted = 0;
|
||||
} else {
|
||||
$mainglossary = $DB->get_record('glossary', array('course'=>$cm->course), 'mainglossary',1);
|
||||
$mainglossary = $DB->get_record('glossary', array('course'=>$cm->course, 'mainglossary'=>1));
|
||||
if ( ! $mainglossary ) {
|
||||
$PermissionGranted = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user