Skip to content

Commit

Permalink
Merge branch 'MDL-52777-master-bug' of github.com:andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Oct 19, 2016
2 parents 4788031 + 42bb3f8 commit c24a410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/tool/usertours/classes/external/tour.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public static function step_shown($tourid, $context, $pageurl, $stepid, $stepind
self::validate_context($context);

$step = step::instance($params['stepid']);
if ($step->get_tourid() !== $params['tourid']) {
if ($step->get_tourid() != $params['tourid']) {
throw new \moodle_exception('Incorrect tour specified.');
}

Expand Down

0 comments on commit c24a410

Please sign in to comment.