From af79def2b503e2a9b519698c4ec27420ff679a73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Thu, 31 Oct 2019 17:45:48 +0100 Subject: [PATCH] Cleanup email unpacking --- mlmmj-ldap-sync | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mlmmj-ldap-sync b/mlmmj-ldap-sync index c114256..6f375b7 100755 --- a/mlmmj-ldap-sync +++ b/mlmmj-ldap-sync @@ -119,7 +119,10 @@ def sync_list(list_name, ldap_group_entry, ldap_conn) if matched_ldap_users.nil? || matched_ldap_users.empty? "" else - matched_ldap_users.first.mail.first + user = matched_ldap_users.first + address = mail.first # 'mail' is an array for some reason. + + address end end