From bfdb5f1cd8b19f78f9309beffb3f5ffa8caee46b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 21 Feb 2006 06:50:13 +0000 Subject: [PATCH] Set default for Schema check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2708 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/index.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/html/index.php b/html/index.php index 43514623b..a5dfa89c4 100644 --- a/html/index.php +++ b/html/index.php @@ -145,9 +145,10 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){ } /* Check for schema file presence */ - if( ((isset($config->data['MAIN']['SCHEMA_CHECK']))&&(preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK']))) - || - (!isset($config->data['MAIN']['SCHEMA_CHECK']))){ + if(!isset($config->data['MAIN']['SCHEMA_CHECK'])){ + $config->data['MAIN']['SCHEMA_CHECK'] = "true"; + } + if(isset($config->data['MAIN']['SCHEMA_CHECK'])&&preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])){ require_once("functions_setup.inc"); if(!is_schema_readable($config->current['SERVER'],$config->current['ADMIN'],$config->current['PASSWORD'])){ print_red(_("GOsa cannot retrieve information about the installed schema files. Please make sure, that this is possible.")); -- 2.30.2