aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/upgrades/2010050701.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/lib/upgrades/2010050701.php b/engine/lib/upgrades/2010050701.php
index e327abdde..b92d6a668 100644
--- a/engine/lib/upgrades/2010050701.php
+++ b/engine/lib/upgrades/2010050701.php
@@ -14,8 +14,11 @@ if (elgg_is_active_plugin('walledgarden')) {
set_config('walled_garden', FALSE);
}
+// this was for people who manually set the config option
$disable_registration = elgg_get_config('disable_registration');
-$allow_registration = !$disable_registration;
-elgg_save_config('allow_registration', $allow_registration);
+if ($disable_registration !== null) {
+ $allow_registration = !$disable_registration;
+ elgg_save_config('allow_registration', $allow_registration);
+}
elgg_set_ignore_access($access);