aboutsummaryrefslogtreecommitdiffstats
path: root/mod/home.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/home.php')
-rw-r--r--mod/home.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/home.php b/mod/home.php
index 9f1c77131..aa89d9ff4 100644
--- a/mod/home.php
+++ b/mod/home.php
@@ -69,7 +69,8 @@ function home_content(&$a, $update = 0, $load = false) {
if(intval(get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) {
// If there's nothing special happening, just spit out a login box
- if (! $a->config['system']['no_login_on_homepage'])
+ $loginbox = get_config('system',login_on_homepage');
+ if(intval($loginbox) || $loginbox === false)
$o .= login(($a->config['system']['register_policy'] == REGISTER_CLOSED) ? 0 : 1);
}