diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-04 09:08:54 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-11-04 09:08:54 +0000 |
| commit | 6943e74d258a5d6497a5544915bee1bfe2817f18 (patch) | |
| tree | bb6b7227fc2dd0721f7e95e656dcd9be9c8cf38d /roundcubemail/program/steps | |
| parent | 8126ad0225e8735966e4fe456f7adcda96c54e32 (diff) | |
- Fix error on opening searched LDAP contact (#1488144)
git-svn-id: https://svn.roundcube.net/trunk@5389 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/func.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc index 2b06e62cd..79a0babb8 100644 --- a/roundcubemail/program/steps/addressbook/func.inc +++ b/roundcubemail/program/steps/addressbook/func.inc @@ -763,9 +763,12 @@ function rcmail_get_cids() foreach ($cid as $id) { // if _source is not specified we'll find it from decoded ID if (!$got_source) { - list ($c, $s) = explode('-', $id, 2); - if (strlen($s)) { - $result[(string)$s][] = $c; + if ($sep = strrpos($id, '-')) { + $contact_id = substr($id, 0, $sep); + $source_id = substr($id, $sep+1); + if (strlen($source_id)) { + $result[(string)$source_id][] = $contact_id; + } } } else { |
