Changeset 5963 in subversion


Ignore:
Timestamp:
Mar 5, 2012 9:21:14 AM (15 months ago)
Author:
alec
Message:
  • Fix new storage classes usage and connection checking (#1488380)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/subscriptions_option/subscriptions_option.php

    r5813 r5963  
    2626{ 
    2727    public $task = 'mail|settings'; 
    28      
     28 
    2929    function init() 
    3030    { 
     
    7575    function mailboxes_list($args) 
    7676    { 
    77         $rcmail = rcmail::get_instance(); 
     77        $rcmail  = rcmail::get_instance(); 
    7878        if (!$rcmail->config->get('use_subscriptions', true)) { 
    79             $args['folders'] = $rcmail->storage->conn->listMailboxes($args['root'], $args['name']); 
     79            $storage = $rcmail->get_storage(); 
     80            if ($storage->check_connection()) { 
     81                $args['folders'] = $storage->conn->listMailboxes($args['root'], $args['name']); 
     82            } 
    8083        } 
    8184        return $args; 
Note: See TracChangeset for help on using the changeset viewer.