From: gbateson Date: Mon, 21 Jan 2008 08:16:02 +0000 (+0000) Subject: fix Undefined property: stdClass::$studentfeedbackurl (line 282) and Undefined prope... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e5eabf22fec30abfbd4f68b202a9560fc69a9bd5;p=moodle.git fix Undefined property: stdClass::$studentfeedbackurl (line 282) and Undefined property: stdClass::$cellcontent2 (line 1081) in mod/hotpot/lib.php --- diff --git a/mod/hotpot/lib.php b/mod/hotpot/lib.php index 0c20858f25..a625048596 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 '
'; + print '
';