Code

Updated table summary
[gosa.git] / gosa-plugins / mail / personal / mail / sieve / class_sieveManagement.inc
index a47cd4bda0892fdb39b3247277149fab56cc5e8c..650c95a2d332c8a0d11e91460c907836ed9043f3 100644 (file)
@@ -143,7 +143,8 @@ class sieveManagement extends plugin
           $cfg["sieve_port"], 
           $this->parent->$uattrib, 
           $cfg["password"], 
-          $cfg["admin"]);
+          $cfg["admin"],
+          $cfg["sieve_option"]);
 
       /* Try to login */
       if (!@$this->sieve_handle->sieve_login()){
@@ -163,6 +164,7 @@ class sieveManagement extends plugin
    */
   function execute()
   {
+    plugin::execute();
     /***************
      * Create a new Script 
      ***************/
@@ -694,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.");
       }