Skip to content
Browse files

LIMIT is now working properly.

  • Loading branch information...
1 parent 5a24a01 commit 74a0363f0cbffc3d855c2f6abd1880135d79b4ad stronk7 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/datalib.php
View
2 lib/datalib.php
@@ -373,7 +373,7 @@ function get_records($table, $field="", $value="", $sort="", $fields="*", $limit
$select = "";
}
- if ($limitfrom) {
+ if ($limitfrom !== "") {
switch ($CFG->dbtype) {
case "mysql":
$limit = "LIMIT $limitfrom,$limitnum";

0 comments on commit 74a0363

Please sign in to comment.
Something went wrong with that request. Please try again.