aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-11-02 02:04:07 -0700
committerfriendica <info@friendica.com>2012-11-02 02:04:07 -0700
commitaf9890cd3e6721c46c65b4220ae292bbaea59143 (patch)
tree4d9da5c5d49a17caef414f301c0c8981149146f2 /mod/settings.php
parent8ae77d2984771992fe34e76893ac933b1f433812 (diff)
downloadvolse-hubzilla-af9890cd3e6721c46c65b4220ae292bbaea59143.tar.gz
volse-hubzilla-af9890cd3e6721c46c65b4220ae292bbaea59143.tar.bz2
volse-hubzilla-af9890cd3e6721c46c65b4220ae292bbaea59143.zip
consolidate permission arrays
Diffstat (limited to 'mod/settings.php')
-rw-r--r--mod/settings.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 3e8134d5c..af0c9f291 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -733,16 +733,16 @@ function settings_content(&$a) {
);
- foreach($perms as $k => $perm) {
+ foreach($global_perms as $k => $perm) {
$permiss[$k] = array(
'key' => $k,
- 'label' => $perm,
+ 'label' => $perm[3],
'fields' => array()
);
- $column = $global_perms[$k][0];
+ $column = $perm[0];
foreach($perm_cats as $cat) {
- if((! $global_perms[$k][2]) && $cat[1] == PERMS_PUBLIC)
+ if((! $perm[2]) && $cat[1] == PERMS_PUBLIC)
continue;
$permiss[$k]['fields'][] = array( $column, $cat[0], $cat[1], '', (($channel[$column] == $cat[1]) ? '1' : ''));
}