Code

Fixed mailmthod property.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Jul 2010 07:37:03 +0000 (07:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Jul 2010 07:37:03 +0000 (07:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18986 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_core.inc

index 3472e3c6442298f1a5c82ad90349d1c38d717a30..eba2e040e8cde2512b6cf50755126b2fc47607c6 100644 (file)
@@ -172,7 +172,12 @@ class core extends plugin {
                 $list = array('mail' => 'mail','uid' => 'uid');
                 break;
             case 'mailMethod': 
-                $list = mailMethod::get_methods();
+                $tmp = mailMethod::get_methods();
+                $list =array();
+                foreach($tmp as $name => $value){
+                    $name = preg_replace('/^mailMethod/','', $name);
+                    $list[$name] = $value;
+                }
                 $list[''] = _("None");
                 break;
             case 'language':