From fda695f29732f5e5bcaa55e7e7abd090d2359927 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 01 Sep 2006 13:14:51 -0400 Subject: [PATCH] Finalized quota image --- program/include/rcube_imap.inc | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/program/include/rcube_imap.inc b/program/include/rcube_imap.inc index a11c749..bcbea81 100644 --- a/program/include/rcube_imap.inc +++ b/program/include/rcube_imap.inc @@ -1010,9 +1010,9 @@ // get part size if (!empty($part[6]) && $part[6]!='NIL') $struct->size = intval($part[6]); - + // read part disposition - $di = count($part) - 3; + $di = count($part) - 2; if (is_array($part[$di])) { $struct->disposition = strtolower($part[$di][0]); @@ -1463,12 +1463,8 @@ function get_quota() { if ($this->get_capability('QUOTA')) - { - $result = iil_C_GetQuota($this->conn); - if ($result["total"]) - return sprintf("%.2fMB / %.2fMB (%.0f%%)", $result["used"] / 1000.0, $result["total"] / 1000.0, $result["percent"]); - } - + return iil_C_GetQuota($this->conn); + return FALSE; } -- Gitblit v1.9.1