aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-10 11:56:10 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-10 11:56:10 +0000
commit4efb697284ea5211684a667ba348ca92b04ba878 (patch)
treeda178448d99e3ffe484e7d6c42aa56d044c793cf
parent330971eefab4ea16aa0667591b44364cb9f95313 (diff)
downloadelgg-4efb697284ea5211684a667ba348ca92b04ba878.tar.gz
elgg-4efb697284ea5211684a667ba348ca92b04ba878.tar.bz2
using defines for ACCESS values - closes #1064
git-svn-id: http://code.elgg.org/elgg/trunk@3749 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/access.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/access.php b/engine/lib/access.php
index 575eacfd6..b508f1fc0 100644
--- a/engine/lib/access.php
+++ b/engine/lib/access.php
@@ -373,7 +373,10 @@ function get_write_access_array($user_id = 0, $site_id = 0, $flush = false) {
$query .= " AND (ag.owner_guid = {$user_id})";
$query .= " AND ag.id >= 3";
- $tmp_access_array = array(0 => elgg_echo("PRIVATE"), ACCESS_FRIENDS => elgg_echo("access:friends:label"), 1 => elgg_echo("LOGGED_IN"), 2 => elgg_echo("PUBLIC"));
+ $tmp_access_array = array( ACCESS_PRIVATE => elgg_echo("PRIVATE"),
+ ACCESS_FRIENDS => elgg_echo("access:friends:label"),
+ ACCESS_LOGGED_IN => elgg_echo("LOGGED_IN"),
+ ACCESS_PUBLIC => elgg_echo("PUBLIC"));
if ($collections = get_data($query)) {
foreach($collections as $collection) {
$tmp_access_array[$collection->id] = $collection->name;