Skip to content

Commit

Permalink
Fix for invalid sql in postgres - don't query log table for what was …
Browse files Browse the repository at this point in the history
…in log display if log->info is not set
  • Loading branch information
mjollnir_ committed Nov 23, 2004
1 parent e74d8b7 commit b442f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/lib.php
Expand Up @@ -521,7 +521,7 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per
$ld = get_record('log_display', 'module', $log->module, "action", $log->action);
$ldcache[$log->module][$log->action] = $ld;
}
if ($ld) {
if ($ld && !empty($log->info)) {
$log->info = get_field($ld->mtable, $ld->field, 'id', $log->info);
}

Expand Down

0 comments on commit b442f81

Please sign in to comment.