From 5ad9dd5ff287662dd3cac8e24c82fe271c8698c0 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Mon, 28 Apr 2014 16:08:49 +0800 Subject: [PATCH] MDL-42956 auth: Fix hard-coded LIMIT clause on keepalive_client method. --- auth/mnet/auth.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/auth/mnet/auth.php b/auth/mnet/auth.php index ff28703e8d8..aa8e1cead42 100644 --- a/auth/mnet/auth.php +++ b/auth/mnet/auth.php @@ -775,10 +775,9 @@ class auth_plugin_mnet extends auth_plugin_base { u.mnethostid = ? AND l.id > ? AND l.course IS NOT NULL - ORDER by l.id ASC - LIMIT 500"; + ORDER by l.id ASC"; - $mnethostlogs = $DB->get_records_sql($mnethostlogssql, array($mnethostid, $mnet_request->response['last log id'])); + $mnethostlogs = $DB->get_records_sql($mnethostlogssql, array($mnethostid, $mnet_request->response['last log id']), 0, 500); if ($mnethostlogs == false) { continue;