diff -r 8a239565e9b3 -r 43c31dc98305 inc/record.inc.php --- a/inc/record.inc.php Mon Feb 11 18:42:04 2008 +0000 +++ b/inc/record.inc.php Mon Feb 11 19:52:20 2008 +0000 @@ -984,10 +984,10 @@ $sqlq.=" GROUP BY domainname, domains.id ORDER BY domainname"; - $db->setLimit($rowstart, $rowamount); + $db->setLimit($rowamount, $rowstart); $result = $db->query($sqlq); // Set limit needs to be called before each query - $db->setLimit($rowstart, $rowamount); + $db->setLimit($rowamount, $rowstart); $result2 = $db->query($sqlq); $numrows = $result2->numRows(); @@ -1201,7 +1201,7 @@ if (is_numeric($id)) { if ($_SESSION[$id."_ispartial"] == 1) { - $db->setLimit($rowstart, $rowamount); + $db->setLimit($rowamount, $rowstart); $result = $db->query("SELECT record_owners.record_id as id FROM record_owners,domains,records WHERE record_owners.user_id = ".$db->quote($_SESSION["userid"])." @@ -1228,7 +1228,7 @@ } } else { - $db->setLimit($rowstart, $rowamount); + $db->setLimit($rowamount, $rowstart); $result = $db->query("SELECT id FROM records WHERE domain_id=".$db->quote($id)); $ret = array(); if($result->numRows() == 0)