From c78a725e6f96a7160130fc4b67e00df572408f9a Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 28 Nov 2008 09:16:19 +0000 Subject: [PATCH] Fixed sieve management handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13064 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../mail/personal/mail/sieve/class_sieveManagement.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc b/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc index fa829e575..e40e03ba8 100644 --- a/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc +++ b/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc @@ -686,6 +686,8 @@ class sieveManagement extends plugin */ function add_new_element_to_current_script($type,$id,$position) { + print_a(array($type,$id,$position)); + /* Test given data */ if(!in_array_ics($position,array("above","below"))){ trigger_error("Can't add new element with \$position=".$position.". Only 'above','below' are allowed here."); @@ -695,8 +697,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."); } -- 2.30.2