Skip to content

Commit

Permalink
! Missing id_msg, oops. (PrintPage.php)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nao committed Oct 21, 2014
1 parent 15bb50b commit 3f28ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/PrintPage.php
Expand Up @@ -65,7 +65,7 @@ function PrintPage()

// Split the topics up so we can print them.
$request = wesql::query('
SELECT subject, poster_time, body, IFNULL(mem.real_name, poster_name) AS poster_name
SELECT m.id_msg, m.subject, m.poster_time, m.body, IFNULL(mem.real_name, m.poster_name) AS poster_name
FROM {db_prefix}messages AS m
LEFT JOIN {db_prefix}members AS mem ON (mem.id_member = m.id_member)
WHERE m.id_topic = {int:current_topic}' . ($settings['postmod_active'] && !allowedTo('approve_posts') ? '
Expand Down

0 comments on commit 3f28ad0

Please sign in to comment.