Permalink
Browse files

A fix to recent log display

  • Loading branch information...
1 parent 0872b02 commit 36d4a9a193a7dc30ae13d2dbaae51b4d791714c7 martin committed Jul 31, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/lib.php
View
@@ -321,13 +321,13 @@ function print_recent_activity($course) {
if ($log->module == "forum") {
$post = NULL;
- if ($log->action == "add post" or $log->action == "add discussion") {
+ if ($log->action == "add post") {
$post = get_record_sql("SELECT p.*, d.forum, u.firstname, u.lastname,
u.email, u.picture, u.id as userid
FROM forum_discussions d, forum_posts p, user u
WHERE p.id = '$log->info' AND d.id = p.discussion AND p.user = u.id");
- } else if ($log->action == "add") {
+ } else if ($log->action == "add discussion") {
$post = get_record_sql("SELECT p.*, d.forum, u.firstname, u.lastname,
u.email, u.picture, u.id as userid
FROM forum_discussions d, forum_posts p, user u

0 comments on commit 36d4a9a

Please sign in to comment.