[dev] PATCH Quota Display Bug

mike@graftonhall.co.nz mike@graftonhall.co.nz
Sat, 3 Aug 2002 12:56:18 +0100


Here's a patch to fix a bug that's always been there. It was just nicely wrapped
in some html and was never visible.
    <table border="0" cellspacing="2" cellpadding="2" width="100%">
      <tr><td align="center" class="<br />
<b>Notice</b>:  Undefined variable:  class in
<b>/var/www/html/horde/imp/templates/quota/quota.inc</b> on line <b>4</b><br />
">
        Quota status: NO LIMIT      </td></tr>
    </table>

- Mike :-)

Index: imp/lib/Quota.php
===================================================================
RCS file: /repository/imp/lib/Quota.php,v
retrieving revision 1.6
diff -I$Horde -I$Revision -I$Date -u -r1.6 Quota.php
--- imp/lib/Quota.php	30 Jul 2002 22:32:21 -0000	1.6
+++ imp/lib/Quota.php	3 Aug 2002 11:51:16 -0000
@@ -123,6 +123,7 @@
             }
             $message = sprintf(_("Quota status: %.2fMB / %.2fMB  (%.2f%%)"),
$used, $total, $percent);
         } else {
+            $class = 'control';
             $message = sprintf(_("Quota status: NO LIMIT"));
         }

-------------------------------------------------------------------------
This mail sent from Mike's CVS HEAD install of IMP: http://horde.org/imp/