From 4c1c3dfb713657a9b0c7296af048c4b12a66811b Mon Sep 17 00:00:00 2001 From: gbateson Date: Mon, 28 Jan 2008 00:51:43 +0000 Subject: [PATCH] fix Undefined index: studentfeedbackurl in mod\hotpot\mod_form.php on line 305 --- mod/hotpot/mod_form.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mod/hotpot/mod_form.php b/mod/hotpot/mod_form.php index f194eb9629..e6b612905a 100644 --- a/mod/hotpot/mod_form.php +++ b/mod/hotpot/mod_form.php @@ -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; -- 2.39.5