From: hickert Date: Thu, 14 Jul 2005 08:00:56 +0000 (+0000) Subject: Fix for : PHP Fehler "Undefined index: ldapconf" in line 230 functions_setup.php X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6bc0bbac5152636644acdbff0891fc22f5d1d6ae;p=gosa.git Fix for : PHP Fehler "Undefined index: ldapconf" in line 230 functions_setup.php git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@952 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_setup.inc b/include/functions_setup.inc index 0b6027639..07d160b01 100644 --- a/include/functions_setup.inc +++ b/include/functions_setup.inc @@ -226,20 +226,24 @@ function schema_check($server, $admin, $password, $aff=0,$CalledByIndexPhP=false $affich['phoneaccount']['msg']= _("Support for gofon enabled")."gofon.schema"; $affich['phoneaccount']['status']= true; } - - if(($_SESSION['ldapconf']['mail_methods'][$_SESSION['ldapconf']['mail']] == "kolab")&&(!$CalledByIndexPhP)){ - if(!isset($objectclasses['kolabInetOrgPerson'])) { - $messages['kolab']['msg']= _("Support for Kolab disabled, no schema seems to be installed, setting mail-method to cyrus"); - $affich['kolab']['msg']=$messages['kolab']['msg']."kolab2.schema"; - - $tmp= array_flip($_SESSION['ldapconf']['mail_methods']); - $_SESSION['ldapconf']['mail']=$tmp['cyrus']; - $messages['kolab']['status']= FALSE; - $affich['kolab']['status']= FALSE; - }else{ - $affich['kolab']['msg']=_("Support for Kolab enabled")."gofon.schema"; - $affich['kolab']['status']= TRUE; - } + + /* Fix for PHP Fehler "Undefined index: ldapconf" + * Ablaufverfolgung[1]: Funktion schema_check Datei: /home/hickert/gosa/include/functions_setup.inc (Zeile 230) + */ + if(isset($_SESSION['ldapconf']['mail_methods'][$_SESSION['ldapconf']['mail']])){ + if(($_SESSION['ldapconf']['mail_methods'][$_SESSION['ldapconf']['mail']] == "kolab")&&(!$CalledByIndexPhP)){ + if(!isset($objectclasses['kolabInetOrgPerson'])) { + $messages['kolab']['msg']= _("Support for Kolab disabled, no schema seems to be installed, setting mail-method to cyrus"); + $affich['kolab']['msg']=$messages['kolab']['msg']."kolab2.schema"; + $tmp= array_flip($_SESSION['ldapconf']['mail_methods']); + $_SESSION['ldapconf']['mail']=$tmp['cyrus']; + $messages['kolab']['status']= FALSE; + $affich['kolab']['status']= FALSE; + }else{ + $affich['kolab']['msg']=_("Support for Kolab enabled")."gofon.schema"; + $affich['kolab']['status']= TRUE; + } + } } if($aff==0){ return ($messages);