This DIFF should do the trick:
Code: Select all
Index: include/functions_entries.inc.php
===================================================================
--- include/functions_entries.inc.php (revision 2337)
+++ include/functions_entries.inc.php (working copy)
@@ -408,7 +408,7 @@
{$serendipity['fullCountQuery']}
{$cond['group']}
{$cond['having']}
- ORDER BY {$cond['orderby']}
+ " . (!empty($cond['orderby']) ? "ORDER BY {$cond['orderby']}" : "") . "
$limit";
// DEBUG: