MDL-69962 tool_usertours: Fix increase in included files

This commit is contained in:
Katie Ransom 2020-10-19 10:45:26 +01:00
parent 149fdcf075
commit ad7d432ebe

View file

@ -637,6 +637,7 @@ class manager {
$tours = cache::get_matching_tourdata($pageurl); $tours = cache::get_matching_tourdata($pageurl);
$matches = []; $matches = [];
if ($tours) {
$filters = helper::get_all_filters(); $filters = helper::get_all_filters();
foreach ($tours as $record) { foreach ($tours as $record) {
$tour = tour::load_from_record($record); $tour = tour::load_from_record($record);
@ -644,6 +645,7 @@ class manager {
$matches[] = $tour; $matches[] = $tour;
} }
} }
}
return $matches; return $matches;
} }