Code

Hooks fixed
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Oct 2005 12:34:41 +0000 (12:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 4 Oct 2005 12:34:41 +0000 (12:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1470 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHook.inc

index d4c21714b370402d628cf3dc1e61b7c032713d2d..6d8e21a346a28a552221eb8caf79e1cd5bff7ccd 100644 (file)
@@ -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);