summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-03-21 20:37:05 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-03-21 20:37:05 +0100
commite4eda66bb417c82549108e85453f87df5ba771fe (patch)
treefee90786a5e1307be682435f4d455071c72b472d /inc
parent5eb135e64ce05d284b43ea503670f8e6ee966f98 (diff)
downloadrpg-e4eda66bb417c82549108e85453f87df5ba771fe.tar.gz
rpg-e4eda66bb417c82549108e85453f87df5ba771fe.tar.bz2
fixed handling of legacy and subscriber config options FS#2208
This was broken in 3a48618a538412994ec244d5a9fde5c4a6161d10
Diffstat (limited to 'inc')
-rw-r--r--inc/confutils.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/confutils.php b/inc/confutils.php
index b2d25fb65..29ead1e9f 100644
--- a/inc/confutils.php
+++ b/inc/confutils.php
@@ -241,13 +241,13 @@ function actionOK($action){
// prepare disabled actions array and handle legacy options
$disabled = explode(',',$conf['disableactions']);
$disabled = array_map('trim',$disabled);
- if(!empty($conf['openregister']) || is_null($auth) || !$auth->canDo('addUser')) {
+ if((isset($conf['openregister']) && !$conf['openregister']) || is_null($auth) || !$auth->canDo('addUser')) {
$disabled[] = 'register';
}
- if(!empty($conf['resendpasswd']) || is_null($auth) || !$auth->canDo('modPass')) {
+ if((isset($conf['resendpasswd']) && !$conf['resendpasswd']) || is_null($auth) || !$auth->canDo('modPass')) {
$disabled[] = 'resendpwd';
}
- if(!empty($conf['subscribers']) || is_null($auth)) {
+ if((isset($conf['subscribers']) && !$conf['subscribers']) || is_null($auth)) {
$disabled[] = 'subscribe';
}
if (is_null($auth) || !$auth->canDo('Profile')) {