Browse Source

Merge pull request #161 from barrysspace/hotfox/issue_159_delete_selected_sessions_M28

Fix issue #159 - Delete no selected sessions
MOODLE_28_STABLE
Dan Marsden 9 years ago
parent
commit
68e9ef6276
  1. 6
      sessions.php

6
sessions.php

@ -126,8 +126,10 @@ switch ($att->pageparams->action) {
} }
redirect($att->url_manage(), get_string('sessiondeleted', 'attendance')); redirect($att->url_manage(), get_string('sessiondeleted', 'attendance'));
} }
$sessid = required_param_array('sessid', PARAM_SEQUENCE); $sessid = optional_param_array('sessid', '', PARAM_SEQUENCE);
if (empty($sessid)) {
print_error('nosessionsselected', 'attendance', $att->url_manage());
}
$sessionsinfo = $att->get_sessions_info($sessid); $sessionsinfo = $att->get_sessions_info($sessid);
$message = get_string('deletecheckfull', '', get_string('session', 'attendance')); $message = get_string('deletecheckfull', '', get_string('session', 'attendance'));

Loading…
Cancel
Save