mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
fixed warning in glossary recent activity from deteted entries
This commit is contained in:
parent
b3e570450f
commit
cf8eaebb06
@ -253,6 +253,9 @@ function glossary_print_recent_activity($course, $isteacher, $timestart) {
|
||||
//Create a temp valid module structure (course,id)
|
||||
$tempmod->course = $log->course;
|
||||
$entry = get_record('glossary_entries','id',$log->info);
|
||||
if (!$entry) {
|
||||
continue;
|
||||
}
|
||||
$tempmod->id = $entry->glossaryid;
|
||||
//Obtain the visible property from the instance
|
||||
$modvisible = instance_is_visible($log->module,$tempmod);
|
||||
|
Loading…
x
Reference in New Issue
Block a user