removed unneeded code

This commit is contained in:
Matthew Saunders Brown 2023-03-30 10:12:16 -07:00
parent afd8251f64
commit 3ad8665a49

View File

@ -36,26 +36,7 @@ class Vhosts extends \Panel\Vhost {
$vhost_array = $f3->get('vhost_array'); $vhost_array = $f3->get('vhost_array');
/* convert data for frontend display */ /* convert data for frontend display */
if ($vhost_array['status'] == 1) { // nothing to convert
$vhost_array['status'] = 'Enabled';
} else {
$vhost_array['status'] = 'Disabled';
}
if ($vhost_array['mbox_limit'] == "NULL") {
$vhost_array['mbox_limit'] = 'Unlimited';
}
if ($vhost_array['mbox_quota_default'] == "NULL") {
$vhost_array['mbox_quota_default'] = 'Unlimited';
} else {
$vhost_array['mbox_quota_default'] .= ' GB';
}
if ($vhost_array['mbox_ratelimit_default'] == "NULL") {
$vhost_array['mbox_ratelimit_default'] = 'Unlimited';
} else {
$vhost_array['mbox_ratelimit_default'] .= ' emails per hour';
}
$f3->set('vhost_array', $vhost_array); $f3->set('vhost_array', $vhost_array);