Code

Updated table summary
[gosa.git] / gosa-plugins / mail / personal / mail / sieve / class_sieveManagement.inc
index fa829e575e25d4a6cea527ee001a4b34f2bc3046..650c95a2d332c8a0d11e91460c907836ed9043f3 100644 (file)
@@ -164,6 +164,7 @@ class sieveManagement extends plugin
    */
   function execute()
   {
+    plugin::execute();
     /***************
      * Create a new Script 
      ***************/
@@ -695,8 +696,7 @@ class sieveManagement extends plugin
       trigger_error("Can't add new element, given id is not numeric.");
       return(FALSE);
     }
-    $tmp = get_declared_classes();  
-    if(!in_array($type,$tmp)){
+    if(!class_available($type)){
       if(!empty($type)){
         trigger_error("Can't add new element, given \$class=".$class." does not exists.");
       }