From d6b6083b4546cb81e62ff8f41de4f6164eb5adf0 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 4 Oct 2005 12:34:41 +0000 Subject: [PATCH] Hooks fixed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1470 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiHook.inc | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.30.2