]> git.mjollnir.org Git - moodle.git/commitdiff
blog MDL-20319 - Fix postgres incompatible syntax
authorpoltawski <poltawski>
Sun, 20 Sep 2009 15:28:28 +0000 (15:28 +0000)
committerpoltawski <poltawski>
Sun, 20 Sep 2009 15:28:28 +0000 (15:28 +0000)
blog/locallib.php

index f6eef0523dbc281581d99a5188657140ccb92da8..024a4b120f640615cb549710e9819dd462fcb8d8 100644 (file)
@@ -682,7 +682,7 @@ class blog_listing {
 
         if (empty($this->entries)) {
             if ($sql_array = $this->get_entry_fetch_sql()) {
-                $this->entries = $DB->get_records_sql($sql_array['sql'] . " LIMIT $start, $limit", $sql_array['params']);
+                $this->entries = $DB->get_records_sql($sql_array['sql'], $sql_array['params'], $start, $limit);
             } else {
                 return false;
             }