Skip to content

Commit

Permalink
MDL-11770, broken userid in add_to_log
Browse files Browse the repository at this point in the history
  • Loading branch information
toyomoyo committed Oct 17, 2007
1 parent 472bce6 commit c470dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/edit.php
Expand Up @@ -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);
Expand Down

0 comments on commit c470dad

Please sign in to comment.