diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-09-10 02:08:40 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-09-10 02:08:40 +0000 |
commit | c54eaadce03b36df86d56c308f41c2a58b7f8fd7 (patch) | |
tree | 2033f417c1a458b6116f3e3b387c0ff3e5a70b83 /engine/lib | |
parent | a00653e5152bc48c083179021c1459a7e4540abe (diff) | |
download | elgg-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.php | 4 |
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) { |