diff options
Diffstat (limited to 'engine/lib/access.php')
-rw-r--r-- | engine/lib/access.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php index c04b7a9bc..7284ff54d 100644 --- a/engine/lib/access.php +++ b/engine/lib/access.php @@ -151,11 +151,12 @@ $query = "select ag.* from {$CONFIG->dbprefix}access_collections ag ";
$query .= " where (ag.site_guid = {$site_id} or ag.site_guid = 0)";
$query .= " and (ag.owner_guid = {$user_id} or ag.owner_guid = 0)";
+ $query .= " and ag.id > 3";
- $tmp_access_array = array();
+ $tmp_access_array = array(0 => elgg_echo("PRIVATE"), 1 => elgg_echo("LOGGED_IN"), 2 => elgg_echo("PUBLIC"));
if ($collections = get_data($query)) {
foreach($collections as $collection)
- $tmp_access_array[$collection->id] = elgg_echo($collection->name);
+ $tmp_access_array[$collection->id] = $collection->name;
}
$tmp_access_array = trigger_plugin_hook('access','user',array('user_id' => $user_id, 'site_id' => $site_id),$tmp_access_array);
|