Code

Updated plugin && ldap class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Apr 2008 10:09:02 +0000 (10:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 8 Apr 2008 10:09:02 +0000 (10:09 +0000)
- import_complete_ldif wasn't working anymore

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10276 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_ldap.inc
gosa-core/include/class_plugin.inc

index f9843247043653dde90b65f6ab11e07cd6fd94dd..bfd429c529920d3c7fa9f55978a2682ea5446a20 100644 (file)
@@ -861,7 +861,7 @@ class LDAP{
       if JustMofify id false the destination dn will be overwritten by the new ldif. 
     */
 
-  function import_complete_ldif($srp, $str_attr,&$error,$JustModify,$DeleteOldEntries)
+  function import_complete_ldif($srp, $str_attr,$error,$JustModify,$DeleteOldEntries)
   {
     if($this->reconnect) $this->connect();
 
index 50f666f81b80659ca81e0291637847e1d350d0d7..047b218983372683ee6a609d473c5877163d40bd 100644 (file)
@@ -1348,6 +1348,7 @@ class plugin
     $data  = gzuncompress($ldap_to->get_attribute($dn,'gosaSnapshotData'));
 
     /* Import the given data */
+    $err = "";
     $ldap->import_complete_ldif($data,$err,false,false);
     if (!$ldap->success()){
       msg_dialog::display(_("LDAP error"), msgPool::ldaperror($ldap->get_error(), $dn, "", get_class()));