Skip to content

Commit

Permalink
A glossary marked global can now be unmarked again later
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jun 7, 2004
1 parent 63f6422 commit e044b5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mod/glossary/lib.php
Expand Up @@ -64,6 +64,9 @@ function glossary_update_instance($glossary) {
if ( !isadmin() ) { if ( !isadmin() ) {
unset($glossary->globalglossary); unset($glossary->globalglossary);
} }
if (empty($glossary->globalglossary)) {
$glossary->globalglossary = 0;
}


$glossary->timemodified = time(); $glossary->timemodified = time();
$glossary->id = $glossary->instance; $glossary->id = $glossary->instance;
Expand Down

0 comments on commit e044b5a

Please sign in to comment.