Changeset 4741 in subversion


Ignore:
Timestamp:
May 6, 2011 2:41:07 PM (2 years ago)
Author:
alec
Message:
  • Fixed ANNOTATEMORE support
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_imap.php

    r4737 r4741  
    36183618        } 
    36193619        else if ($this->get_capability('ANNOTATEMORE') || $this->get_capability('ANNOTATEMORE2')) { 
    3620             foreach ($entries as $entry => $value) { 
     3620            foreach ((array)$entries as $entry => $value) { 
    36213621                list($ent, $attr) = $this->md2annotate($entry); 
    36223622                $entries[$entry] = array($ent, $attr, $value); 
     
    36483648        } 
    36493649        else if ($this->get_capability('ANNOTATEMORE') || $this->get_capability('ANNOTATEMORE2')) { 
    3650             foreach ($entries as $idx => $entry) { 
     3650            foreach ((array)$entries as $idx => $entry) { 
    36513651                list($ent, $attr) = $this->md2annotate($entry); 
    36523652                $entries[$idx] = array($ent, $attr, NULL); 
     
    36743674    { 
    36753675        if ($this->get_capability('METADATA') ||  
    3676             !strlen(($mailbox) && $this->get_capability('METADATA-SERVER')) 
     3676            (!strlen($mailbox) && $this->get_capability('METADATA-SERVER')) 
    36773677        ) { 
    36783678            return $this->conn->getMetadata($mailbox, $entries, $options); 
     
    36833683 
    36843684            // Convert entry names 
    3685             foreach ($entries as $entry) { 
     3685            foreach ((array)$entries as $entry) { 
    36863686                list($ent, $attr) = $this->md2annotate($entry); 
    36873687                $queries[$attr][] = $ent; 
     
    37043704     * entry-attrib names for older ANNOTATEMORE version. 
    37053705     * 
    3706      * @param string Entry name 
     3706     * @param string $entry Entry name 
    37073707     * 
    37083708     * @return array Entry-attribute list, NULL if not supported (?) 
    37093709     */ 
    3710     private function md2annotate($name) 
     3710    private function md2annotate($entry) 
    37113711    { 
    37123712        if (substr($entry, 0, 7) == '/shared') { 
Note: See TracChangeset for help on using the changeset viewer.