Projet

Général

Profil

Révision 7547bb19

Ajouté par Assos Assos il y a environ 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ldap/ldap_feeds/FeedsLdapEntryParser.inc
22 22
      $parsed_item = array('dn' => (string)$ldap_entry['dn']);
23 23
      foreach ($mappings as $j => $map) {
24 24
        $source_lcase = drupal_strtolower($map['source']);
25
        // dn is already parsed
26
        if ($source_lcase == 'dn') {
27
          continue;
28
        }
25 29
        $source = $map['source'];
26 30
        if (isset($ldap_entry['attr'])) {
27 31
          // exception need because of unconvential format of ldap data returned from $ldap_server->userUserNameToExistingLdapEntry
......
30 34
        else {
31 35
          $ldap_attributes = $ldap_entry;
32 36
        }
33
        if ($source_lcase != 'dn' && isset($ldap_attributes[$source_lcase][0])) {
37
        if (isset($ldap_attributes[$source_lcase][0])) {
34 38
          if ($ldap_attributes[$source_lcase]['count'] == 1 && is_scalar($ldap_attributes[$source_lcase][0])) {
35 39
            $parsed_item[$source] = (string)$ldap_attributes[$source_lcase][0];
36 40
          }
......
40 44
          }
41 45
        }
42 46
        else {
43
          $parsed_item[$source] = '';
47
          $parsed_item[$source] = ' ';
44 48
        }
45 49
      }
46 50
      $parsed_items[] = $parsed_item;

Formats disponibles : Unified diff