]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11770, broken userid in add_to_log
authortoyomoyo <toyomoyo>
Wed, 17 Oct 2007 03:02:17 +0000 (03:02 +0000)
committertoyomoyo <toyomoyo>
Wed, 17 Oct 2007 03:02:17 +0000 (03:02 +0000)
blog/edit.php

index 8fc9978709d2a80494110355e1a6f92e6e31b3e7..fe721b69ea4f49c8f579ab18030bd77cceb94a28 100755 (executable)
@@ -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);