Code

Set default for Schema check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Feb 2006 06:50:13 +0000 (06:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Feb 2006 06:50:13 +0000 (06:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2708 594d385d-05f5-0310-b6e9-bd551577e9d8

html/index.php

index 43514623b2be9bb87bb675e9ff953bc0dcb75d9e..a5dfa89c48c9fcc565f08317e4020f3c1c2711f0 100644 (file)
@@ -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."));