From f9b460de78994fde1adb39ccfdfb233fcc419b80 Mon Sep 17 00:00:00 2001 From: icewing Date: Wed, 2 Apr 2008 11:56:50 +0000 Subject: Marcus Povey * BUGFIX: Offset/limit git-svn-id: https://code.elgg.org/elgg/trunk@357 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/metadata.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.2.3