From: toyomoyo Date: Wed, 17 Oct 2007 03:02:17 +0000 (+0000) Subject: MDL-11770, broken userid in add_to_log X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f23aee73d08c8133d9d012bfe19ca1f30016944c;p=moodle.git MDL-11770, broken userid in add_to_log --- 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);