summaryrefslogtreecommitdiff
path: root/program/include/rcube_ldap.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-09-12 15:57:08 +0000
committeralecpl <alec@alec.pl>2011-09-12 15:57:08 +0000
commit6f45fa56ced44431806496ff70d5c8831cca3b37 (patch)
treeca78a1396515ff25c1d842e82fd65f6e87c4c089 /program/include/rcube_ldap.php
parent8703b0801865eb47505c960037d916253e315fc7 (diff)
- Fix required_fields checking per discussion in #1488073
Diffstat (limited to 'program/include/rcube_ldap.php')
-rw-r--r--program/include/rcube_ldap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_ldap.php b/program/include/rcube_ldap.php
index 699691d87..373670ab0 100644
--- a/program/include/rcube_ldap.php
+++ b/program/include/rcube_ldap.php
@@ -685,8 +685,8 @@ class rcube_ldap extends rcube_addressbook
} // end foreach
// Verify that the required fields are set.
+ $missing = null;
foreach ($this->prop['required_fields'] as $fld) {
- $missing = null;
if (!isset($newentry[$fld])) {
$missing[] = $fld;
}