]> git.mjollnir.org Git - moodle.git/commitdiff
LIMIT is now working properly.
authorstronk7 <stronk7>
Sun, 3 Aug 2003 21:49:19 +0000 (21:49 +0000)
committerstronk7 <stronk7>
Sun, 3 Aug 2003 21:49:19 +0000 (21:49 +0000)
lib/datalib.php

index 41a770a0ddd48de25cbcb71ab6781b2ee63c5af3..7e596446f417d0600168a1a09a1112e5077c5eaa 100644 (file)
@@ -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";