From: poltawski Date: Sun, 20 Sep 2009 15:28:28 +0000 (+0000) Subject: blog MDL-20319 - Fix postgres incompatible syntax X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4a432ae638764f3a0b27155ad9a88e64b4f37b52;p=moodle.git blog MDL-20319 - Fix postgres incompatible syntax --- diff --git a/blog/locallib.php b/blog/locallib.php index f6eef0523d..024a4b120f 100644 --- a/blog/locallib.php +++ b/blog/locallib.php @@ -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; }