reverse logic of homepage login setting

This commit is contained in:
redmatrix
2015-06-07 18:27:05 -07:00
parent 0537ff1e4a
commit 60cfea5d1f
3 changed files with 9 additions and 5 deletions

View File

@@ -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);
}