aboutsummaryrefslogtreecommitdiffstats
path: root/mod/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/login.php')
-rw-r--r--mod/login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/login.php b/mod/login.php
index 296890a5b..4ee4e1fa0 100644
--- a/mod/login.php
+++ b/mod/login.php
@@ -4,5 +4,5 @@
function login_content(&$a) {
// return login($a->config['register_enabled']);
- return login(1);
+ return login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
} \ No newline at end of file