aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 11:56:50 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-02 11:56:50 +0000
commitf9b460de78994fde1adb39ccfdfb233fcc419b80 (patch)
treede68733fa3315c745d8f9425817a5d67a43cf30a /engine
parente2da9b0bd63cfc64b3ca3316e5dd4404bfccfa4a (diff)
downloadelgg-f9b460de78994fde1adb39ccfdfb233fcc419b80.tar.gz
elgg-f9b460de78994fde1adb39ccfdfb233fcc419b80.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* BUGFIX: Offset/limit git-svn-id: https://code.elgg.org/elgg/trunk@357 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/metadata.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/metadata.php b/engine/lib/metadata.php
index eb5096f3e..f8a448f14 100644
--- a/engine/lib/metadata.php
+++ b/engine/lib/metadata.php
@@ -331,7 +331,7 @@
foreach ($where as $w)
$query .= " $w and ";
$query .= " (e.access_id in {$access} or (e.access_id = 0 and e.owner_guid = {$_SESSION['id']}))"; // Add access controls
- $query .= " order by $order_by limit $limit, $offset"; // Add order and limit
+ $query .= " order by $order_by limit $offset, $limit"; // Add order and limit
return get_data($query, "entity_row_to_elggstar");
}