Changeset 179b39d in github


Ignore:
Timestamp:
Nov 4, 2011 5:08:54 AM (19 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
77153b2
Parents:
9aab5e5
Message:
  • Fix error on opening searched LDAP contact (#1488144)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r9aab5e5 r179b39d  
    22=========================== 
    33 
     4- Fix error on opening searched LDAP contact (#1488144) 
    45- Fix redundant line break in flowed format (#1488146) 
    56- TinyMCE: 
  • program/steps/addressbook/func.inc

    r3ac5cdb r179b39d  
    764764        // if _source is not specified we'll find it from decoded ID 
    765765        if (!$got_source) { 
    766             list ($c, $s) = explode('-', $id, 2); 
    767             if (strlen($s)) { 
    768                 $result[(string)$s][] = $c; 
     766            if ($sep = strrpos($id, '-')) { 
     767                $contact_id = substr($id, 0, $sep); 
     768                $source_id  = substr($id, $sep+1); 
     769                if (strlen($source_id)) { 
     770                    $result[(string)$source_id][] = $contact_id; 
     771                } 
    769772            } 
    770773        } 
Note: See TracChangeset for help on using the changeset viewer.