diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-12-25 15:56:29 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-12-25 15:56:29 -0800 |
commit | 5a229234e79597202954cb4604bb27ec83966d56 (patch) | |
tree | db7cd1e394cc955d160aa2620e25da36175f0a7f /mod/settings.php | |
parent | b1a77b2235e534f2b01c8b1bb9566a2e5085d43f (diff) | |
download | volse-hubzilla-5a229234e79597202954cb4604bb27ec83966d56.tar.gz volse-hubzilla-5a229234e79597202954cb4604bb27ec83966d56.tar.bz2 volse-hubzilla-5a229234e79597202954cb4604bb27ec83966d56.zip |
Set accept permissions to that of role so if you change to a custom role you don't start with nothing.
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php index 339f83cfe..275b2a96f 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -367,7 +367,7 @@ function settings_post(&$a) { } $r = q("update abook set abook_my_perms = %d where abook_channel = %d and abook_self = 1", - intval(($role_permissions['perms_auto']) ? intval($role_permissions['perms_accept']) : 0), + intval((array_key_exists('perms_accept',$role_permissions)) ? $role_permissions['perms_accept'] : 0), intval(local_channel()) ); set_pconfig(local_channel(),'system','autoperms',(($role_permissions['perms_auto']) ? intval($role_permissions['perms_accept']) : 0)); |