From 692a8368ed47d3964ef7b4ab9e6a0c008ff131c6 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Wed, 21 Feb 2018 12:26:47 +1300 Subject: [PATCH] Fix link on subnet error. --- attendance.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/attendance.php b/attendance.php index 1818972..3f08027 100644 --- a/attendance.php +++ b/attendance.php @@ -47,7 +47,8 @@ if (!attendance_can_student_mark($attforsession)) { // Check if subnet is set and if the user is in the allowed range. if (!empty($attforsession->subnet) && !address_in_subnet(getremoteaddr(), $attforsession->subnet)) { - notice(get_string('subnetwrong', 'attendance')); + $url = new moodle_url('/mod/attendance/view.php', array('id' => $cm->id)); + notice(get_string('subnetwrong', 'attendance'), $url); exit; // Notice calls this anyway. }