aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-10 02:08:40 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-09-10 02:08:40 +0000
commitc54eaadce03b36df86d56c308f41c2a58b7f8fd7 (patch)
tree2033f417c1a458b6116f3e3b387c0ff3e5a70b83 /engine/lib
parenta00653e5152bc48c083179021c1459a7e4540abe (diff)
downloadelgg-c54eaadce03b36df86d56c308f41c2a58b7f8fd7.tar.gz
elgg-c54eaadce03b36df86d56c308f41c2a58b7f8fd7.tar.bz2
Fixing a bug with when getting the sql suffix for the non-loggedin user.
git-svn-id: https://code.elgg.org/elgg/trunk@3483 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/access.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index 05fafd3d3..7ba1970f5 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -222,13 +222,13 @@ END;
if ($table_prefix)
$table_prefix = sanitise_string($table_prefix) . ".";
- $access = get_access_list();
-
if (!isset($owner)) {
$owner = get_loggedin_userid();
}
if (!$owner) $owner = -1;
+ $access = get_access_list($owner);
+
global $is_admin;
if (isset($is_admin) && $is_admin == true) {