Permalink
Browse files

MDL-20131 Glossary: Fixed courseid typo

  • Loading branch information...
1 parent 95556ce commit 390ef41e022eeee51cee530b830c7e06df3eb898 @rajeshtaneja rajeshtaneja committed Feb 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 blocks/glossary_random/block_glossary_random.php
View
2 blocks/glossary_random/block_glossary_random.php
@@ -169,7 +169,7 @@ function get_content() {
$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();

0 comments on commit 390ef41

Please sign in to comment.