From 5e44128f70cafda55e6df7457ee4f6bcd7da6935 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 4 Feb 2016 23:18:48 -0700 Subject: [PATCH] Switch settings are not always needed so removing the "throw new Exception" --- core/install/resources/classes/global_settings.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/install/resources/classes/global_settings.php b/core/install/resources/classes/global_settings.php index 00f181a41d..24d980d912 100644 --- a/core/install/resources/classes/global_settings.php +++ b/core/install/resources/classes/global_settings.php @@ -132,9 +132,6 @@ require_once "root.php"; sort( $this->_switch_vdirs ); if(is_null($detect_switch)){ //take settings from session - if(!isset($_SESSION['switch'])){ - throw new Exception("No detect_switch was passed to me but \$_SESSION['switch'] is empty!"); - } foreach ($this->_switch_dirs as $dir){ $category = 'switch'; $session_var;