alecpl
2010-01-27 4fc7a7e5f633f10dac29a9bd7e77bb23e3f9585e
program/include/rcube_ldap.php
@@ -648,7 +648,7 @@
    foreach ($this->fieldmap as $rf => $lf)
    {
      if ($rec[$lf]['count']) {
        if ($rf == 'email' && $mail_domain && !strpos($rec[$lf][0], '@'))
        if ($rf == 'email' && $this->mail_domain && !strpos($rec[$lf][0], '@'))
          $out[$rf] = sprintf('%s@%s', $rec[$lf][0], $this->mail_domain);
        else
          $out[$rf] = $rec[$lf][0];