Permalink
Browse files

LIMIT is now working properly.

  • Loading branch information...
stronk7
stronk7 committed Aug 3, 2003
1 parent 5a24a01 commit 74a0363f0cbffc3d855c2f6abd1880135d79b4ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/datalib.php
View
@@ -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.