Permalink
Browse files

Robustness fixes

  • Loading branch information...
1 parent b369ff5 commit 3ba298559430d5551700b70f8f1d079c106b724f moodler committed Apr 21, 2003
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/journal/lib.php
  2. +1 −1 mod/journal/report.php
View
@@ -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
@@ -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);
}

0 comments on commit 3ba2985

Please sign in to comment.