diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index 0c20858f25b..a6250485969 100644 --- a/mod/hotpot/lib.php +++ b/mod/hotpot/lib.php @@ -281,11 +281,8 @@ function hotpot_set_form_values(&$hotpot) { $hotpot->errors['reference']= get_string('error_nofilename', 'hotpot'); } - if ($hotpot->studentfeedbackurl=='http://') { + if (empty($hotpot->studentfeedbackurl) || $hotpot->studentfeedbackurl=='http://') { $hotpot->studentfeedbackurl = ''; - } - - if (empty($hotpot->studentfeedbackurl)) { switch ($hotpot->studentfeedback) { case HOTPOT_FEEDBACK_WEBPAGE: $ok = false; @@ -1081,9 +1078,15 @@ function hotpot_print_recent_mod_activity($activity, $course, $detail=false) { global $CFG, $THEME, $USER; + if (isset($THEME->cellcontent2)) { + $bgcolor = ' bgcolor="'.$THEME->cellcontent2.'"'; + } else { + $bgcolor = ''; + } + print '
| '; + print ' | |
| '; print_user_picture($activity->user->userid, $course, $activity->user->picture); print ' | '; |