Code

Updated setup.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Jul 2008 07:50:37 +0000 (07:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Jul 2008 07:50:37 +0000 (07:50 +0000)
-Collecting available mail methods failed if no mail plugins were installed.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11571 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/setup/class_setupStep_Config2.inc

index 89103e75b082f0ac404dd3bd16d54c6997d7efb2..50bfc8e660003c4cc8179365936534c2bc204653 100644 (file)
@@ -311,6 +311,11 @@ class Step_Config2 extends setup_step
   {
     global $class_mapping;
 
+    /* Check if we have the mail classes/plugins installed */
+    if(!class_available("mailMethod")){
+      return(array());
+    }
+
     $default_uattrib = "";
     $m_class_vars = get_class_vars("mailMethod");
     if(isset($m_class_vars['uattrib'])){