diff --git a/classes/output/mobile.php b/classes/output/mobile.php index c367c7d..b2c2d1f 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -139,7 +139,11 @@ class mobile { continue; } } - list($canmark, $reason) = attendance_can_student_mark($sess, false); + list($canmark, $reason) = attendance_can_student_mark($sess); + if ($reason == 'preventsharederror') { + $data['showmessage'] = true; + $data['messages'][]['string'] = 'preventsharederror'; // Lang string to show as a message. + } if ($isteacher || $canmark) { $html = array('time' => attendance_construct_session_time($sess->sessdate, $sess->duration));