summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4a348e3)
raw | patch | inline | side by side (parent: 4a348e3)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 16 May 2008 09:51:14 +0000 (09:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 16 May 2008 09:51:14 +0000 (09:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10927 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_tabs.inc | patch | blob | history |
index b6fb6b057ffa813a55f5993d3cf918a22637f026..3245241a2ae241e11a07ff86d3e5ebb186b64dec 100644 (file)
$obj->dn= $this->dn;
- if ($obj->is_account || $ignore_account || $obj->ignore_account){
- if ($obj->save() == 1){
- return (1);
+ if(!$obj instanceof plugin){
+ trigger_error("Something went wrong while saving ".$obj->dn.". Object class '".get_class($obj)."'.");
+ }else{
+
+ if ($obj->is_account || $ignore_account || $obj->ignore_account){
+ if ($obj->save() == 1){
+ return (1);
+ }
+ } else {
+ $obj->remove_from_parent();
}
- } else {
- $obj->remove_from_parent();
}
}
return (0);