Skip to content

Commit

Permalink
Bug when reassigning firstposts in discussions.
Browse files Browse the repository at this point in the history
Solved !! Uff !!
  • Loading branch information
stronk7 committed Jun 23, 2003
1 parent 6dbedc7 commit 9f61d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/mod/forum/restorelib.php
Expand Up @@ -204,7 +204,7 @@ function forum_discussions_restore_mods($forum_id,$info,$restore) {
$discussion->firstpost = 0; $discussion->firstpost = 0;
} }
//Create temp discussion record //Create temp discussion record
$temp_discussion->id = $discussion->id; $temp_discussion->id = $newid;
$temp_discussion->firstpost = $discussion->firstpost; $temp_discussion->firstpost = $discussion->firstpost;
//echo "Updated firstpost ".$old_firstpost." to ".$temp_discussion->firstpost."<br>"; //Debug //echo "Updated firstpost ".$old_firstpost." to ".$temp_discussion->firstpost."<br>"; //Debug
} else { } else {
Expand Down

0 comments on commit 9f61d8a

Please sign in to comment.