| ".get_string("gradeforstudentsassessment", "exercise", $course->student).
" | \n";
echo number_format($exercise->gradinggrade * $assessment->gradinggrade / 100.0, 0);
diff --git a/mod/workshop/locallib.php b/mod/workshop/locallib.php
index acc3c7cdab2..58b7d91a455 100644
--- a/mod/workshop/locallib.php
+++ b/mod/workshop/locallib.php
@@ -2053,7 +2053,7 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
| \n";
+ echo '
'.userdate(@$assessment->timecreated)."\n";
echo "
\n";
// only show the grade if grading strategy > 0 and the grade is positive
- if ($showgrades and $workshop->gradingstrategy and $assessment->grade >= 0) {
+ if ($assessment and $showgrades and $workshop->gradingstrategy and $assessment->grade >= 0) {
echo "\n
".get_string("thegradeis", "workshop").": ".
@@ -2594,7 +2594,7 @@ function workshop_print_assessment($workshop, $assessment = false, $allowchanges
$timenow = time();
// now show the grading grade if available...
- if ($assessment->timegraded) {
+ if ($assessment and $assessment->timegraded) {
echo "\n";
echo "| ".
get_string('gradeforstudentsassessment', 'workshop')." | \n";
|