From f4e8ecdd6b31fb21ca7ee4e1a3ffbd37c2303b6e Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 21 Feb 2006 06:47:55 +0000 Subject: [PATCH] Use schema check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2707 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/index.php b/html/index.php index 0aa550a17..43514623b 100644 --- a/html/index.php +++ b/html/index.php @@ -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.")); -- 2.30.2