diff options
author | mrjive <mrjive@mrjive.it> | 2016-01-03 09:52:37 +0100 |
---|---|---|
committer | mrjive <mrjive@mrjive.it> | 2016-01-03 09:52:37 +0100 |
commit | 07f5bdde60f55e3b217aee9e33c3175e90a5f0f1 (patch) | |
tree | 2b5988c7661c9a5a67f5da8797ca57381e2aad7a /mod/settings.php | |
parent | 051346325609f5f2e78ef0deaf182c65d7823bbc (diff) | |
parent | 5b0a17359d6b5b3e27219c9e56117f1017996175 (diff) | |
download | volse-hubzilla-07f5bdde60f55e3b217aee9e33c3175e90a5f0f1.tar.gz volse-hubzilla-07f5bdde60f55e3b217aee9e33c3175e90a5f0f1.tar.bz2 volse-hubzilla-07f5bdde60f55e3b217aee9e33c3175e90a5f0f1.zip |
Merge pull request #10 from redmatrix/master
updating from original codebase
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)); |