From 3ad8665a49508e1d2e3ad8770ee3319f2197d443 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 30 Mar 2023 10:12:16 -0700 Subject: [PATCH] removed unneeded code --- panel/classes/Panel/Vhost/Vhosts.php | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/panel/classes/Panel/Vhost/Vhosts.php b/panel/classes/Panel/Vhost/Vhosts.php index 9612efe..1dc7b23 100644 --- a/panel/classes/Panel/Vhost/Vhosts.php +++ b/panel/classes/Panel/Vhost/Vhosts.php @@ -36,26 +36,7 @@ class Vhosts extends \Panel\Vhost { $vhost_array = $f3->get('vhost_array'); /* convert data for frontend display */ - if ($vhost_array['status'] == 1) { - $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'; - } + // nothing to convert $f3->set('vhost_array', $vhost_array);