Fix comment rss feeds
This commit is contained in:
@@ -174,7 +174,7 @@ function serendipity_fetchComments($id, $limit = null, $order = '', $showAll = f
|
|||||||
WHERE co.type LIKE '" . $type . "' AND co.entry_id > 0 $and
|
WHERE co.type LIKE '" . $type . "' AND co.entry_id > 0 $and
|
||||||
$group
|
$group
|
||||||
ORDER BY
|
ORDER BY
|
||||||
" . ($where != '' ? '' : 'co.id') . " " . ($where == '' && $order != '' ? ',' : '') . ($order != '' ? $order : '') . "
|
" . ($where != '' ? '' : 'co.id') . " " . ($order != '' ? $order : '') . "
|
||||||
$limit";
|
$limit";
|
||||||
$comments = serendipity_db_query($query, false, 'assoc');
|
$comments = serendipity_db_query($query, false, 'assoc');
|
||||||
|
|
||||||
@@ -328,6 +328,7 @@ function serendipity_printCommentsByAuthor() {
|
|||||||
$sql_where = " AND co.author = '" . serendipity_db_escape_string($serendipity['GET']['viewCommentAuthor']) . "'";
|
$sql_where = " AND co.author = '" . serendipity_db_escape_string($serendipity['GET']['viewCommentAuthor']) . "'";
|
||||||
$group_by = "GROUP BY co.author";
|
$group_by = "GROUP BY co.author";
|
||||||
} else {
|
} else {
|
||||||
|
$sql_where = " AND 1"; // Required fake 'where' condition
|
||||||
$group_by = "";
|
$group_by = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user