1
0

fix parse error

This commit is contained in:
Garvin Hicking
2007-06-11 10:15:01 +00:00
parent d5a1fad4b0
commit fc815b25eb

View File

@ -159,8 +159,8 @@ class serendipity_plugin_recententries extends serendipity_plugin {
if (!$dateformat || strlen($dateformat) < 1) {
$dateformat = '%A, %B %e %Y';
}
if ($randomize)
if ($db == 'mysql' || $db == 'mysqli')) {
if ($randomize) {
if ($db == 'mysql' || $db == 'mysqli') {
$sql_order = "ORDER BY RAND()";
} else {
// SQLite and PostgreSQL support this, hooray.