Changeset 4741 in subversion for trunk/roundcubemail/program/include/rcube_imap.php
- Timestamp:
- May 6, 2011 2:41:07 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/rcube_imap.php
r4737 r4741 3618 3618 } 3619 3619 else if ($this->get_capability('ANNOTATEMORE') || $this->get_capability('ANNOTATEMORE2')) { 3620 foreach ( $entries as $entry => $value) {3620 foreach ((array)$entries as $entry => $value) { 3621 3621 list($ent, $attr) = $this->md2annotate($entry); 3622 3622 $entries[$entry] = array($ent, $attr, $value); … … 3648 3648 } 3649 3649 else if ($this->get_capability('ANNOTATEMORE') || $this->get_capability('ANNOTATEMORE2')) { 3650 foreach ( $entries as $idx => $entry) {3650 foreach ((array)$entries as $idx => $entry) { 3651 3651 list($ent, $attr) = $this->md2annotate($entry); 3652 3652 $entries[$idx] = array($ent, $attr, NULL); … … 3674 3674 { 3675 3675 if ($this->get_capability('METADATA') || 3676 !strlen(($mailbox) && $this->get_capability('METADATA-SERVER'))3676 (!strlen($mailbox) && $this->get_capability('METADATA-SERVER')) 3677 3677 ) { 3678 3678 return $this->conn->getMetadata($mailbox, $entries, $options); … … 3683 3683 3684 3684 // Convert entry names 3685 foreach ( $entries as $entry) {3685 foreach ((array)$entries as $entry) { 3686 3686 list($ent, $attr) = $this->md2annotate($entry); 3687 3687 $queries[$attr][] = $ent; … … 3704 3704 * entry-attrib names for older ANNOTATEMORE version. 3705 3705 * 3706 * @param string Entry name3706 * @param string $entry Entry name 3707 3707 * 3708 3708 * @return array Entry-attribute list, NULL if not supported (?) 3709 3709 */ 3710 private function md2annotate($ name)3710 private function md2annotate($entry) 3711 3711 { 3712 3712 if (substr($entry, 0, 7) == '/shared') {
Note: See TracChangeset
for help on using the changeset viewer.
