fix parse error

This commit is contained in:
Garvin Hicking 2007-06-11 10:15:01 +00:00
parent 7f9ea41586
commit ec52b712c3

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.