Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #89 #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions sections/userhistory/post_history.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
p.TopicID,
t.Title,
t.LastPostID,
l.PostID AS LastRead,
t.IsLocked,
t.IsSticky
t.IsSticky,
l.PostID AS LastRead
FROM forums_posts AS p
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
LEFT JOIN users_info AS ui ON ui.UserID = p.AuthorID
Expand Down Expand Up @@ -104,14 +104,14 @@
ed.Username,
p.TopicID,
t.Title,
t.LastPostID,';
t.LastPostID,
t.IsLocked,
t.IsSticky,';
if ($UserID == $LoggedUser['ID']) {
$sql .= '
l.PostID AS LastRead,';
l.PostID AS LastRead';
}
$sql .= "
t.IsLocked,
t.IsSticky
FROM forums_posts AS p
LEFT JOIN users_main AS um ON um.ID = p.AuthorID
LEFT JOIN users_info AS ui ON ui.UserID = p.AuthorID
Expand Down Expand Up @@ -213,7 +213,7 @@
</div>
<?
$QueryID = $DB->get_query_id();
while (list($PostID, $AddedTime, $Body, $EditedUserID, $EditedTime, $EditedUsername, $TopicID, $ThreadTitle, $LastPostID, $LastRead, $Locked, $Sticky) = $DB->next_record()) {
while (list($PostID, $AddedTime, $Body, $EditedUserID, $EditedTime, $EditedUsername, $TopicID, $ThreadTitle, $LastPostID, $Locked, $Sticky, $LastRead) = $DB->next_record()) {
?>
<table class="forum_post vertical_margin<?=!Users::has_avatars_enabled() ? ' noavatar' : '' ?>" id="post<?=$PostID ?>">
<colgroup>
Expand Down