]> git.sur5r.net Git - contagged/commitdiff
ignore unknown fields in fields (may happen on import)
authorAndreas Gohr <gohr@cosmocode.de>
Tue, 26 Jun 2007 13:35:09 +0000 (15:35 +0200)
committerAndreas Gohr <gohr@cosmocode.de>
Tue, 26 Jun 2007 13:35:09 +0000 (15:35 +0200)
darcs-hash:20070626133509-6e07b-6782fbbf27e0ca3f1d11b5fc9131deb5002dda29.gz

inc/functions.php

index b0c28f67d6fff20ee4c09f4c3a3579d87c0e3252..617888d7d86dadc1e18da2d9417d0b7dafc53d6f 100644 (file)
@@ -230,12 +230,7 @@ function prepare_ldap_entry($in){
             $out[$FIELDS["_$key"]][] = $value; //shouldn't happen, but to be sure
         }
     }else{
-        // no mapping found - assume it to be a LDAP attribute (shouldn't happen)
-        if(is_array($value)){
-            $out[$key] = $value;
-        }else{
-            $out[$key][] = $value;
-        }
+        // no mapping found we ignore it
     }
   }