Skip to content

Commit 4336bfc

Browse files
committed
Fixed a bug in the InThisDiscussion plugin.
1 parent b07fd99 commit 4336bfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/VanillaInThisDiscussion/class.inthisdiscussionmodule.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function GetData($DiscussionID, $Limit = 50) {
2828
->From('User u')
2929
->Join('Comment c', 'u.UserID = c.InsertUserID')
3030
->Where('c.DiscussionID', $DiscussionID)
31-
->GroupBy('u.UserID, u.Name, p.Name')
31+
->GroupBy('u.UserID, u.Name')
3232
->OrderBy('u.Name', 'asc')
3333
->Get();
3434
}
@@ -38,6 +38,9 @@ public function AssetTarget() {
3838
}
3939

4040
public function ToString() {
41+
if ($this->_UserData->NumRows() == 0)
42+
return '';
43+
4144
$String = '';
4245
ob_start();
4346
?>

0 commit comments

Comments
 (0)