From 76feee3f86a4a946d063623e73c62f909e9ed6a7 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 23 Nov 2004 23:27:18 +0000 Subject: [PATCH] Merged from MOODLE_14_STABLE: Fix for invalid sql in postgres - don't query log table for what was in log display if log->info is not set --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index 8e02789f84..d66b92397d 100644 --- a/course/lib.php +++ b/course/lib.php @@ -600,7 +600,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); } -- 2.39.5