MDL-42956 auth: Fix hard-coded LIMIT clause on keepalive_client method.

This commit is contained in:
Simey Lameze 2014-04-28 16:08:49 +08:00
parent a0461340ff
commit 5ad9dd5ff2

View File

@ -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;