summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b036a51)
raw | patch | inline | side by side (parent: b036a51)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 5 Apr 2007 13:21:07 +0000 (13:21 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 5 Apr 2007 13:21:07 +0000 (13:21 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5994 594d385d-05f5-0310-b6e9-bd551577e9d8
include/sieve/class_sieveManagement.inc | patch | blob | history | |
include/sieve/templates/object_container.tpl | patch | blob | history |
index dfc76229aacefc9d06993d9e0f61a87b2fb99655..96035b5b2079e9307d576b223beec3fb4113b5dd 100644 (file)
}
$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 49027a5b6d088fda774d3af38dab884b0ed24cf8..967338323ff9a55ece3fae5a05f5f214b8897b15 100644 (file)
<select name='element_type_{$ID}'>
+ <option value=''> </option>
<option value='sieve_comment'>comment</option>
<option value='sieve_fileinto'>sieve_fileinto</option>
<option value='sieve_keep'>sieve_keep</option>