diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-17 18:21:02 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-17 18:21:02 +0000 |
commit | 5ee52a817885e641a56eef6ebcdd4250ef8be4b5 (patch) | |
tree | d6f3f8156c7246f698e06b17e732e940fb2b1526 | |
parent | 051777055429852abda1751bd24bca0f10d9ad86 (diff) | |
download | elgg-5ee52a817885e641a56eef6ebcdd4250ef8be4b5.tar.gz elgg-5ee52a817885e641a56eef6ebcdd4250ef8be4b5.tar.bz2 |
Fixes faulty logic in twitter services that allowed new users to register via twitter when site registration was off.
git-svn-id: http://code.elgg.org/elgg/trunk@8276 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/twitterservice/twitterservice_lib.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/twitterservice/twitterservice_lib.php b/mod/twitterservice/twitterservice_lib.php index 5d04714f0..bc9d28ec6 100644 --- a/mod/twitterservice/twitterservice_lib.php +++ b/mod/twitterservice/twitterservice_lib.php @@ -314,7 +314,7 @@ function twitterservice_allow_new_users_with_twitter() { $site_reg = elgg_get_config('allow_registration'); $twitter_reg = elgg_get_plugin_setting('new_users'); - if ($site_reg || (!$site_reg && $twitter_reg)) { + if ($site_reg || (!$site_reg && $twitter_reg == 'yes')) { return true; } |