Changeset 21a0d91 in github


Ignore:
Timestamp:
Apr 11, 2012 6:31:57 AM (13 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
1ba07f0
Parents:
097dbc6
Message:
  • Fix contact information update in case when contact photo exists (#1488420)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_ldap.php

    r097dbc6 r21a0d91  
    11101110        $old_data  = $record['_raw_attrib']; 
    11111111 
     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 
    11121120        foreach ($this->fieldmap as $col => $fld) { 
    11131121            if ($fld) { 
     
    11211129                if (is_array($old) && count($old) == 1 && !is_array($val)) { 
    11221130                    $old = array_pop($old); 
     1131                } 
     1132                if (is_array($val) && count($val) == 1 && !is_array($old)) { 
     1133                    $val = array_pop($val); 
    11231134                } 
    11241135                // Subentries must be handled separately 
     
    11371148                    continue; 
    11381149                } 
     1150 
    11391151                // The field does exist compare it to the ldap record. 
    11401152                if ($old != $val) { 
Note: See TracChangeset for help on using the changeset viewer.