Changeset 1899 in subversion
- Timestamp:
- Sep 29, 2008 7:46:21 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/lib/imap.inc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/lib/imap.inc
r1800 r1899 701 701 702 702 function iil_ExplodeQuotedString($delimiter, $string) { 703 $quotes =explode('"', $string);703 $quotes = explode('"', $string); 704 704 while ( list($key, $val) = each($quotes)) { 705 705 if (($key % 2) == 1) { … … 707 707 } 708 708 } 709 $string =implode('"', $quotes);710 711 $result =explode($delimiter, $string);709 $string = implode('"', $quotes); 710 711 $result = explode($delimiter, $string); 712 712 while ( list($key, $val) = each($result) ) { 713 713 $result[$key] = str_replace('_!@!_', $delimiter, $result[$key]); … … 2020 2020 $index = iil_C_Search($conn, $folder, 'ALL UNSEEN'); 2021 2021 if (is_array($index)) { 2022 $str = implode(',', $index); 2023 if (empty($str)) { 2024 return false; 2025 } 2026 return count($index); 2022 if (($cnt = count($index)) && $index[0] != '') { 2023 return $cnt; 2024 } 2027 2025 } 2028 2026 return false; … … 2032 2030 if ($uid > 0) { 2033 2031 $id_a = iil_C_Search($conn, $folder, "UID $uid"); 2034 if (is_array($id_a)) { 2035 $count = count($id_a); 2036 if ($count > 1) { 2037 return false; 2038 } 2032 if (is_array($id_a) && count($id_a) == 1) { 2039 2033 return $id_a[0]; 2040 2034 }
Note: See TracChangeset
for help on using the changeset viewer.
