Code

Property edtior wasn't useable without having the mail plugin installed.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 10:59:10 +0000 (10:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 22 Nov 2010 10:59:10 +0000 (10:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20317 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_core.inc

index 1848ca5105c85032bc51f870be47ac7e43b3ecd4..4e33d2b463278842de613f219186651b46f3feb3 100644 (file)
@@ -172,7 +172,10 @@ class core extends plugin {
                 $list = array('mail' => 'mail','uid' => 'uid');
                 break;
             case 'mailMethod': 
-                $tmp = mailMethod::get_methods();
+                $tmp = array();
+                if(class_available('mailMethod')){
+                    $tmp = mailMethod::get_methods();
+                }
                 $list =array();
                 foreach($tmp as $name => $value){
                     $name = preg_replace('/^mailMethod/','', $name);