SQLite compatibvility
This commit is contained in:
parent
74c6f01c23
commit
d144e0ff66
@ -169,12 +169,12 @@ function serendipity_fetchComments($id, $limit = null, $order = '', $showAll = f
|
|||||||
co.id AS commentid,
|
co.id AS commentid,
|
||||||
co.parent_id AS parent_id
|
co.parent_id AS parent_id
|
||||||
FROM
|
FROM
|
||||||
{$serendipity['dbPrefix']}comments co
|
{$serendipity['dbPrefix']}comments AS co
|
||||||
LEFT JOIN {$serendipity['dbPrefix']}entries e ON (co.entry_id = e.id)
|
LEFT JOIN {$serendipity['dbPrefix']}entries AS e ON (co.entry_id = e.id)
|
||||||
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') . " " . ($order != '' ? $order : '') . "
|
" . ($where != '' ? '' : 'co.id') . " " . ($where == '' && $order != '' ? ',' : '') . ($order != '' ? $order : '') . "
|
||||||
$limit";
|
$limit";
|
||||||
$comments = serendipity_db_query($query, false, 'assoc');
|
$comments = serendipity_db_query($query, false, 'assoc');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user