mirror of
https://github.com/moodle/moodle.git
synced 2025-06-01 05:35:55 +02:00
MDL-16075 fixed glossary export regression
This commit is contained in:
parent
1f0e77025d
commit
272c2c92a1
@ -17,7 +17,7 @@
|
|||||||
if ( ! $cm ) {
|
if ( ! $cm ) {
|
||||||
$PermissionGranted = 0;
|
$PermissionGranted = 0;
|
||||||
} else {
|
} 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 ) {
|
if ( ! $mainglossary ) {
|
||||||
$PermissionGranted = 0;
|
$PermissionGranted = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user