Commits

Zhang Huangbin  committed 7e60cbc

Fix typo in template.

  • Participants
  • Parent commits 8bc04a8

Comments (0)

Files changed (2)

File templates/default/ldap/admins.html

             {% set domainGlobalAdmin = entry.get('domainGlobalAdmin', ['no'])[0] %}
 
             {# Display username part of mail address when cn is empty. #}
-            {% if cn == '' %}
+            {% if cn |string == '' %}
                 {% set cn = mail.split('@', 1)[0] %}
             {% endif %}
 

File templates/default/ldap/users.html

                 {% set createTimestamp = entries.get('createTimestamp', ['--------------'])[0] %}
 
                 {# Display username part of mail address when cn is empty. #}
-                {% if cn == '' %}
+                {% if cn |string == '' %}
                     {% set cn = mail.split('@', 1)[0] %}
                 {% endif %}