Skip to content

Commit

Permalink
Remove one notice in PHP5. From HEAD.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Jan 14, 2005
1 parent 014f27e commit 16b0406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/glossary/filter.php
Expand Up @@ -61,7 +61,7 @@ function glossary_filter($courseid, $text) {
if ( $lastcategory != $concept->id ) {
$category = get_record("glossary_categories","id",$concept->id);
$lastcategory = $concept->id;
if ( $cm->instance != $category->glossaryid ) {
if ( empty($cm->instance) || $cm->instance != $category->glossaryid ) {
$gcat = get_record("glossary","id",$category->glossaryid);
if ( !$cm = get_coursemodule_from_instance("glossary", $category->glossaryid, $gcat->course) ) {
$cm->id = 1;
Expand Down

0 comments on commit 16b0406

Please sign in to comment.