diff --git a/src/functions/redirect.php b/src/functions/redirect.php index 15be64a0..eb12c4c6 100644 --- a/src/functions/redirect.php +++ b/src/functions/redirect.php @@ -10,12 +10,11 @@ function redirect(string $target) { global $user; - $isDevEnvironment = defined('ENV_IS_DEV') && true === ENV_IS_DEV; - /** * Redirect user based on channel setting */ - $isHostInChannel = false; + $isDevEnvironment = defined('ENV_IS_DEV') && true === ENV_IS_DEV; + $isHostInChannel = false; /** Determine if host is a defined channel */ foreach (CHANNELS as $channel) {