From: hickert Date: Thu, 5 Apr 2007 13:21:07 +0000 (+0000) Subject: Added empty value, to elements that could be added X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9f5f4e170c56a7952dcbb2af0dc7688371f9fd34;p=gosa.git Added empty value, to elements that could be added git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5994 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/sieve/class_sieveManagement.inc b/include/sieve/class_sieveManagement.inc index dfc76229a..96035b5b2 100644 --- a/include/sieve/class_sieveManagement.inc +++ b/include/sieve/class_sieveManagement.inc @@ -699,7 +699,9 @@ class sieveManagement extends plugin } $tmp = get_declared_classes(); if(!in_array($type,$tmp)){ - trigger_error("Can't add new element, given \$class=".$class." does not exists."); + if(!empty($type)){ + trigger_error("Can't add new element, given \$class=".$class." does not exists."); + } return(FALSE); } if(!is_object($this->current_handler) || get_class($this->current_handler) != "My_Parser"){ diff --git a/include/sieve/templates/object_container.tpl b/include/sieve/templates/object_container.tpl index 49027a5b6..967338323 100644 --- a/include/sieve/templates/object_container.tpl +++ b/include/sieve/templates/object_container.tpl @@ -18,6 +18,7 @@