aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/twitterservice/twitterservice_lib.php2
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;
}