From 8d976d6e60bc73a8fe5550b3798afdb6bf54b72a Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 8 Mar 2011 05:44:02 +0000 Subject: Fixes #2310. Only conditionally setting the allow_registration field for users who used $CONFIG->disable_registration. git-svn-id: http://code.elgg.org/elgg/trunk@8631 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/upgrades/2010050701.php | 7 +++++-- 1 file 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); -- cgit v1.2.3