diff --git a/index.php b/index.php
index 61abc67..2d5a0a3 100644
--- a/index.php
+++ b/index.php
@@ -5,7 +5,7 @@ if (!@include('config.php')) {
@session_start();
if (strlen($_SESSION['username']) < 1 && $li_show_front === true) {
if ($li_index_redirect) {
- header("Location: " + $redirect_link);
+ header("Location: " . $li_index_redirect);
die();
}
else {
diff --git a/setup.php b/setup.php
index 25495e1..91f6269 100644
--- a/setup.php
+++ b/setup.php
@@ -101,7 +101,7 @@
\$theme = "{$_POST['t']}";
\$ip = {$_POST['ipfetch']};
\$li_show_front = {$_POST['li_show_front']};
-\$li_index_redirect = {$_POST['li_index_redirect']};
+\$li_index_redirect = '{$_POST['li_index_redirect']}';
\$unstr = "{$rstr}";
PHP;
@@ -286,8 +286,8 @@ PHP;
. ""
. "";
- echo "If public interface is hidden, redirect index page to: "
- . "Notice: if this setting is enabled, you will need to go to http://PATHTOPOLR/login.php before you can access the index page."
+ echo "If public interface is hidden, redirect index page to: "
+ . "Notice: if this setting is enabled, you will need to go to http://PATHTOPOLR/login.php before you can access the index page. Leave the field blank to show a generic index page."
. "