xml-rpc: fixed comment fetching for S9Y 1.6.1

This commit is contained in:
Grischa Brockhaus 2012-01-27 13:37:15 +01:00
parent 8a3da9bda7
commit a77c857e50

View file

@ -502,7 +502,7 @@ function wp_getComments($message) {
$limit = !empty($comment_filter['number'])?$comment_filter['number']:'10'; // defaults to 10
if (!empty($comment_filter['offset'])) $limit = serendipity_db_limit($comment_filter['offset'], $limit);
if (version_compare($serendipity['version'],'1.7-alpha1')>=0)
if (version_compare($serendipity['version'],'1.6.1')>=0)
$order = ' co.timestamp DESC';
else
$order = ' DESC'; // old versions have a bug here producing wrong results