Code

Use schema check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Feb 2006 06:47:55 +0000 (06:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Feb 2006 06:47:55 +0000 (06:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2707 594d385d-05f5-0310-b6e9-bd551577e9d8

html/index.php

index 0aa550a178b232761dd4ddaf3870b1101fcea5fb..43514623b2be9bb87bb675e9ff953bc0dcb75d9e 100644 (file)
@@ -145,7 +145,9 @@ if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['login'])){
   }
 
   /* Check for schema file presence */
-  if(preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])){
+  if( ((isset($config->data['MAIN']['SCHEMA_CHECK']))&&(preg_match("/true/i",$config->data['MAIN']['SCHEMA_CHECK'])))
+      ||  
+      (!isset($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."));