diff --git a/template/mailbox-stats.php b/template/mailbox-stats.php index bcec7b1..5ff9934 100644 --- a/template/mailbox-stats.php +++ b/template/mailbox-stats.php @@ -1,85 +1,85 @@ . /* * This is the template for some mailbox stats * * Called from: * template/mailbox.php * * Available variables: * $mailbox object * $plan object */ // avoid to be load directly defined( 'BOZ_PHP' ) or die; // calculate the remaining Mailbox quota percentage $remaining_quota_percentage = null; if( $plan ) { $remaining_quota_percentage = Plan::percentage( $mailbox->getMailboxLastSizeBytes(), $plan->getPlanMailboxQuota() ); if( $remaining_quota_percentage ) { - $remaining_quota_percentage -= 100; + $remaining_quota_percentage = 100 - $remaining_quota_percentage; } } ?>

getMailboxLastSizeBytes() !== null ): ?> getPlanMailboxQuota() ): ?>
getMailboxLastSizeBytes() ) ?>
getPlanMailboxQuota() ) ?>
%