From: Niklas Laxström Date: Tue, 2 Aug 2005 21:02:49 +0000 (+0000) Subject: I guess we can support OFFSET too, or can we? X-Git-Tag: 1.6.0~2072 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=e0734599a052709da7c1283cb5d279621ea9c214;p=lhc%2Fweb%2Fwiklou.git I guess we can support OFFSET too, or can we? --- diff --git a/includes/Database.php b/includes/Database.php index 54ea2198f9..3776e0d4c8 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -729,7 +729,7 @@ class Database { $sql = "SELECT $vars $from $useIndex $tailOpts"; } if (isset($options['LIMIT'])) { - $sql = $this->limitResult($sql, $options['LIMIT'], false); + $sql = $this->limitResult($sql, $options['LIMIT'], isset($options['OFFSET']) ? $options['OFFSET'] : false); } return $this->query( $sql, $fname ); }