Robustness fixes

This commit is contained in:
moodler 2003-04-21 08:08:33 +00:00
parent b369ff55fe
commit 3ba2985594
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}