fix Undefined index: studentfeedbackurl in mod\hotpot\mod_form.php on line 305

This commit is contained in:
gbateson 2008-01-28 00:51:43 +00:00
parent c5d7d04624
commit 4c1c3dfb71

View File

@ -302,10 +302,8 @@ class mod_hotpot_mod_form extends moodleform_mod {
}
// studentfeedbackurl
if ($data['studentfeedbackurl']=='http://') {
if (empty($data['studentfeedbackurl']) || $data['studentfeedbackurl']=='http://') {
$data['studentfeedbackurl'] = '';
}
if (empty($data['studentfeedbackurl'])) {
$error = false;
if ($data['studentfeedback']==HOTPOT_FEEDBACK_WEBPAGE) {
$error = true;