Merge branch 'MDL-55808_master' of git://github.com/juancs/moodle
authorJun Pataleta <jun@moodle.com>
Sun, 19 Nov 2017 21:34:55 +0000 (10:34 +1300)
committerJun Pataleta <jun@moodle.com>
Sun, 19 Nov 2017 21:34:55 +0000 (10:34 +1300)
mod/glossary/lib.php

index e7fc3e4..bad8317 100644 (file)
@@ -3846,7 +3846,7 @@ function glossary_get_entries_by_search($glossary, $context, $query, $fullsearch
     $count = $DB->count_records_sql("SELECT COUNT(DISTINCT(ge.id)) $sqlfrom $sqlwhere", $params);
 
     $query = "$sqlwrapheader $sqlselect $sqlfrom $sqlwhere $sqlwrapfooter $sqlorderby";
-    $entries = $DB->get_recordset_sql($query, $params, $from, $limit);
+    $entries = $DB->get_records_sql($query, $params, $from, $limit);
 
     return array($entries, $count);
 }