Merge branch 'MDL-52777-master-bug' of github.com:andrewnicols/moodle

This commit is contained in:
David Monllao
2016-10-20 10:09:28 +08:00
+1 -1
View File
@@ -579,7 +579,7 @@ EOF;
foreach ($tours as $record) {
$tour = tour::load_from_record($record);
if ($tour->is_enabled() && $tour->matches_all_filters($PAGE->context) & $tour->get_steps() > 0) {
if ($tour->is_enabled() && $tour->matches_all_filters($PAGE->context) && $tour->get_steps() > 0) {
return $tour;
}
}