LIMIT is now working properly.

This commit is contained in:
stronk7 2003-08-03 21:49:19 +00:00
parent 5a24a01868
commit 74a0363f0c

View File

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