mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Robustness fixes
This commit is contained in:
parent
b369ff55fe
commit
3ba2985594
@ -214,7 +214,7 @@ function journal_log_info($log) {
|
||||
|
||||
|
||||
function journal_print_user_entry($course, $user, $entry, $teachers, $ratings) {
|
||||
global $THEME;
|
||||
global $THEME, $USER;
|
||||
|
||||
if ($entry->timemarked < $entry->modified) {
|
||||
$colour = $THEME->cellheading2;
|
||||
|
@ -100,7 +100,7 @@
|
||||
}
|
||||
|
||||
foreach ($users as $user) {
|
||||
if (! $usersdone[$user->id]) {
|
||||
if (empty($usersdone[$user->id])) {
|
||||
$entry = NULL;
|
||||
journal_print_user_entry($course, $user, $entry, $teachers, $JOURNAL_RATING);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user