diff --git a/lib/WebGUI/Discussion.pm b/lib/WebGUI/Discussion.pm index 646fb6e5b..21cb97a3d 100644 --- a/lib/WebGUI/Discussion.pm +++ b/lib/WebGUI/Discussion.pm @@ -392,13 +392,13 @@ sub showMessage { $message{views},'',$message{status}); $html .= ''; $html .= ''; - @data = WebGUI::SQL->quickArray("select max(messageId) from discussion - where wobjectId=$message{wobjectId} and pid=0 and messageId<$message{rid}".$sqlAdd); if (canPostReply($_[1],\%message)) { $html .= ''.WebGUI::International::get(577).'
'; } + @data = WebGUI::SQL->quickArray("select max(messageId) from discussion + where wobjectId=$message{wobjectId} and pid=0 and messageId<$message{rid}".$sqlAdd); if ($data[0] ne "") { $html .= '« '.WebGUI::International::get(513).'
';