summaryrefslogtreecommitdiff
path: root/plugins/new_user_identity/new_user_identity.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-09-18 13:04:16 +0000
committeralecpl <alec@alec.pl>2009-09-18 13:04:16 +0000
commit4d54cfe8407dcdfb8bdf27961716d46478fe33f7 (patch)
tree7d1f7a17c2dfab3d3d2b27c0b2819f42e80e310e /plugins/new_user_identity/new_user_identity.php
parent915e3d19ed1b8c915d276fe3a9a8f50e3ff0da2c (diff)
- Fix setting user name in 'new_user_identity' plugin (#1486137)
Diffstat (limited to 'plugins/new_user_identity/new_user_identity.php')
-rw-r--r--plugins/new_user_identity/new_user_identity.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/new_user_identity/new_user_identity.php b/plugins/new_user_identity/new_user_identity.php
index 75595693c..78c99522d 100644
--- a/plugins/new_user_identity/new_user_identity.php
+++ b/plugins/new_user_identity/new_user_identity.php
@@ -19,10 +19,6 @@
* // When automatically setting a new users's full name in their
* // new identity, match the user's login name against this field.
* $rcmail_config['new_user_identity_match'] = 'uid';
- *
- * // Use the value in this field to automatically set a new users's
- * // full name in their new identity.
- * $rcmail_config['new_user_identity_field'] = 'name';
*/
class new_user_identity extends rcube_plugin
{
@@ -40,7 +36,7 @@ class new_user_identity extends rcube_plugin
$ldap->prop['search_fields'] = array($match);
$results = $ldap->search($match, $args['user'], TRUE);
if (count($results->records) == 1) {
- $args['user_name'] = $results->records[0][$rcmail->config->get('new_user_identity_field')];
+ $args['user_name'] = $results->records[0]['name'];
}
}
return $args;