From: hickert Date: Tue, 4 Oct 2005 12:34:41 +0000 (+0000) Subject: Hooks fixed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d6b6083b4546cb81e62ff8f41de4f6164eb5adf0;p=gosa.git Hooks fixed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1470 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index d4c21714b..6d8e21a34 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -280,6 +280,9 @@ class faiHook extends plugin $ldap->modify($tmp); $this->handle_post_events("modify"); }elseif($obj['status']=="new"){ + if($tmp['description']==array()){ + unset($tmp['description']); + } $ldap->cd($this->config->current['BASE']); $ldap->create_missing_trees(preg_replace('/^[^,]+,/', '', $sub_dn)); $ldap->cd($sub_dn);