MDL-55808 mod_glossary: Search glossary entries with ratings enabled doesn't work
authorJuan Segarra Montesinos <juan.segarra@uji.es>
Fri, 13 Oct 2017 15:12:37 +0000 (17:12 +0200)
committerJuan Segarra Montesinos <juan.segarra@uji.es>
Fri, 13 Oct 2017 15:12:37 +0000 (17:12 +0200)
mod/glossary/lib.php

index a942525..e1618cc 100644 (file)
@@ -3821,7 +3821,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);
 }