diff --git a/src/classes/page.php b/src/classes/page.php index 66a27e19..a4644189 100644 --- a/src/classes/page.php +++ b/src/classes/page.php @@ -144,7 +144,9 @@ class Page /** * Redirect */ - if (isset($options) && !$options->getOption('isInstalled') && isset($_SERVER['QUERY_STRING'])) { + global $options; + + if ($options && $options->getOption('isInstalled') && isset($_SERVER['QUERY_STRING'])) { $url = new URL($_SERVER['QUERY_STRING']); $redirect_to = $url->getPretty();