From: Andreas Gohr Date: Tue, 26 Jun 2007 13:35:09 +0000 (+0200) Subject: ignore unknown fields in fields (may happen on import) X-Git-Tag: 0.7.1~47 X-Git-Url: https://git.sur5r.net/?p=contagged;a=commitdiff_plain;h=d381303dd441c710512326ac1d56b5789dbd04ce ignore unknown fields in fields (may happen on import) darcs-hash:20070626133509-6e07b-6782fbbf27e0ca3f1d11b5fc9131deb5002dda29.gz --- diff --git a/inc/functions.php b/inc/functions.php index b0c28f6..617888d 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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 } }