MDL-21891 fix for pg incompatibility - credit goes to Penny Leach

This commit is contained in:
Petr Skoda
2010-04-19 21:28:28 +00:00
parent e13914acae
commit af3158d8cc
+1 -1
View File
@@ -709,7 +709,7 @@ class blog_listing {
if (empty($this->entries)) {
if ($sqlarray = $this->get_entry_fetch_sql()) {
$this->entries = $DB->get_records_sql($sqlarray['sql'] . " LIMIT $start, $limit", $sqlarray['params']);
$this->entries = $DB->get_records_sql($sqlarray['sql'], $sqlarray['params'], $start, $limit);
} else {
return false;
}