MDL-20131 Glossary: Fixed courseid typo

This commit is contained in:
Rajesh Taneja
2013-02-12 10:57:10 +08:00
parent 95556ce4e8
commit 390ef41e02
@@ -169,7 +169,7 @@ class block_glossary_random extends block_base {
$modinfo = get_fast_modinfo($this->config->courseid);
// If deleted glossary or non-global glossary on different course page, then reset.
if (!isset($modinfo->instances['glossary'][$this->config->glossary])
|| ((empty($this->config->globalglossary) && ($this->config->courseid != $this->page->course)))) {
|| ((empty($this->config->globalglossary) && ($this->config->courseid != $this->page->course->id)))) {
$this->config->glossary = 0;
$this->config->cache = '';
$this->instance_config_commit();