From 4efb697284ea5211684a667ba348ca92b04ba878 Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 10 Dec 2009 11:56:10 +0000 Subject: using defines for ACCESS values - closes #1064 git-svn-id: http://code.elgg.org/elgg/trunk@3749 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/access.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engine/lib/access.php') 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; -- cgit v1.2.3