From: hickert Date: Mon, 22 Nov 2010 10:59:10 +0000 (+0000) Subject: Property edtior wasn't useable without having the mail plugin installed. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2fd7f731f2e03c8fa8a8c27cf654e3bda3dd1460;p=gosa.git Property edtior wasn't useable without having the mail plugin installed. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20317 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_core.inc b/gosa-core/include/class_core.inc index 1848ca510..4e33d2b46 100644 --- a/gosa-core/include/class_core.inc +++ b/gosa-core/include/class_core.inc @@ -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);