mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
LIMIT is now working properly.
This commit is contained in:
parent
5a24a01868
commit
74a0363f0c
@ -373,7 +373,7 @@ function get_records($table, $field="", $value="", $sort="", $fields="*", $limit
|
|||||||
$select = "";
|
$select = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($limitfrom) {
|
if ($limitfrom !== "") {
|
||||||
switch ($CFG->dbtype) {
|
switch ($CFG->dbtype) {
|
||||||
case "mysql":
|
case "mysql":
|
||||||
$limit = "LIMIT $limitfrom,$limitnum";
|
$limit = "LIMIT $limitfrom,$limitnum";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user