roundcubemail/program/lib/Roundcube/rcube_imap.php
public function check_connection()
    {
        // Establish connection if it wasn't done yet
        if (!$this->connect_done && !empty($this->options['user'])) {
            return $this->connect(
                $this->options['host'],
                $this->options['user'],
                $this->options['password'],
                $this->options['port'],
                $this->options['ssl']
            );
        }

        return $this->is_connected();
    }
public function check_connection()
    {
        // Establish connection if it wasn't done yet
        if (!$this->connect_done && !empty($this->options['user'])) {
            return $this->connect(
                $this->options['host'],
                $this->options['user'],
                $this->options['password'],
                $this->options['port'],
                $this->options['ssl']
            );
        }

        return $this->is_connected();
    }
public function check_connection ( ) { // Establish connection if it wasn't done yet if ( ! $ this -> connect_done && ! empty ( $ this -> options [ 'user' ] ) ) { return $ this -> connect ( $ this -> options [ 'host' ] , $ this -> options [ 'user' ] , $ this -> options [ 'password' ] , $ this -> options [ 'port' ] , $ this -> options [ 'ssl' ] ) ; } return $ this -> is_connected ( ) ; }
Check connection state, connect if not connected.

@return bool Connection state.
Check connection state connect if not connected .