Changeset f8a846c in github


Ignore:
Timestamp:
Aug 28, 2009 4:31:41 AM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
3e8b1119
Parents:
b8ae99a6
Message:
  • simplified iil_C_(Un)Subscribe() return value
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_imap.php

    r80fbdaa rf8a846c  
    28912891    { 
    28922892    $updated = FALSE; 
    2893      
     2893 
    28942894    if (is_array($a_mboxes)) 
    28952895      foreach ($a_mboxes as $i => $mbox_name) 
     
    28992899 
    29002900        if ($mode=='subscribe') 
    2901           $result = iil_C_Subscribe($this->conn, $mailbox); 
     2901          $updated = iil_C_Subscribe($this->conn, $mailbox); 
    29022902        else if ($mode=='unsubscribe') 
    2903           $result = iil_C_UnSubscribe($this->conn, $mailbox); 
    2904  
    2905         if ($result>=0) 
    2906           $updated = TRUE; 
     2903          $updated = iil_C_UnSubscribe($this->conn, $mailbox); 
    29072904        } 
    2908          
    2909     // get cached mailbox list     
     2905 
     2906    // get cached mailbox list 
    29102907    if ($updated) 
    29112908      { 
     
    29192916      else if ($mode=='unsubscribe') 
    29202917        $a_mailbox_cache = array_diff($a_mailbox_cache, $a_mboxes); 
    2921          
     2918 
    29222919      // write mailboxlist to cache 
    29232920      $this->update_cache('mailboxes', $this->_sort_mailbox_list($a_mailbox_cache)); 
Note: See TracChangeset for help on using the changeset viewer.