Changeset 21a0d91 in github
- Timestamp:
- Apr 11, 2012 6:31:57 AM (13 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- 1ba07f0
- Parents:
- 097dbc6
- File:
-
- 1 edited
-
program/include/rcube_ldap.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_ldap.php
r097dbc6 r21a0d91 1110 1110 $old_data = $record['_raw_attrib']; 1111 1111 1112 // special handling of photo col 1113 if ($photo_fld = $this->fieldmap['photo']) { 1114 // undefined means keep old photo 1115 if (!array_key_exists('photo', $save_cols)) { 1116 $ldap_data[$photo_fld] = $record['photo']; 1117 } 1118 } 1119 1112 1120 foreach ($this->fieldmap as $col => $fld) { 1113 1121 if ($fld) { … … 1121 1129 if (is_array($old) && count($old) == 1 && !is_array($val)) { 1122 1130 $old = array_pop($old); 1131 } 1132 if (is_array($val) && count($val) == 1 && !is_array($old)) { 1133 $val = array_pop($val); 1123 1134 } 1124 1135 // Subentries must be handled separately … … 1137 1148 continue; 1138 1149 } 1150 1139 1151 // The field does exist compare it to the ldap record. 1140 1152 if ($old != $val) {
Note: See TracChangeset
for help on using the changeset viewer.
