From f23aee73d08c8133d9d012bfe19ca1f30016944c Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Wed, 17 Oct 2007 03:02:17 +0000 Subject: [PATCH] MDL-11770, broken userid in add_to_log --- blog/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/edit.php b/blog/edit.php index 8fc9978709..fe721b69ea 100755 --- a/blog/edit.php +++ b/blog/edit.php @@ -297,7 +297,7 @@ function do_edit($post, $blogeditform) { // add them back add_tags_info($post->id); - add_to_log(SITEID, 'blog', 'update', 'index.php?userid='.$post->userid.'&postid='.$post->id, $post->subject); + add_to_log(SITEID, 'blog', 'update', 'index.php?userid='.$USER->id.'&postid='.$post->id, $post->subject); } else { error('There was an error updating this post in the database', $returnurl); -- 2.39.5