From b7ce498cc7338d81664048fc34b5512f9314c58d Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 17 Feb 2014 13:44:20 +0000 Subject: [PATCH] add missing { } git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1640 a1433add-5e2c-0410-b055-b7f2511e0802 --- list-virtual.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/list-virtual.php b/list-virtual.php index 8c5d8263..21fc6892 100644 --- a/list-virtual.php +++ b/list-virtual.php @@ -272,17 +272,19 @@ if (isset ($limit)) { $gen_show_status = array (); $check_alias_owner = array (); -if ((is_array ($tAlias) and sizeof ($tAlias) > 0)) +if ((is_array ($tAlias) and sizeof ($tAlias) > 0)) { foreach (array_keys($tAlias) as $i) { $gen_show_status [$i] = gen_show_status($tAlias[$i]['address']); $check_alias_owner [$i] = check_alias_owner($admin_username, $tAlias[$i]['address']); } +} $gen_show_status_mailbox = array (); $divide_quota = array ('current' => array(), 'quota' => array()); -if ((is_array ($tMailbox) and sizeof ($tMailbox) > 0)) - for ($i = 0; $i < sizeof ($tMailbox); $i++) { +if ((is_array ($tMailbox) and sizeof ($tMailbox) > 0)) { + for ($i = 0; $i < sizeof ($tMailbox); $i++) { $gen_show_status_mailbox [$i] = gen_show_status($tMailbox[$i]['username']); + if(isset($tMailbox[$i]['current'])) { $divide_quota ['current'][$i] = divide_quota ($tMailbox[$i]['current']); } @@ -298,7 +300,9 @@ if ((is_array ($tMailbox) and sizeof ($tMailbox) > 0)) $divide_quota ['quota_width'][$i] = 0; # TODO: use special value? } } - +} + + class cNav_bar { var $count, $title, $limit, $page_size, $pages, $search; //* arguments