Connect to IMAP server before reading quota

This commit is contained in:
thomascube
2012-02-25 18:15:25 +00:00
parent a1bd76232a
commit ef1e877a8d

View File

@@ -2729,7 +2729,7 @@ class rcube_imap extends rcube_storage
*/
public function get_quota()
{
if ($this->get_capability('QUOTA')) {
if ($this->get_capability('QUOTA') && $this->check_connection()) {
return $this->conn->getQuota();
}