From ce394f527d9b782ab25af0c60df1856119b60b4e Mon Sep 17 00:00:00 2001 From: SJ Date: Sat, 24 Aug 2013 23:47:29 +0200 Subject: [PATCH] smarthost display fix --- webui/controller/health/worker.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webui/controller/health/worker.php b/webui/controller/health/worker.php index 0d85e2bf..5afa0f23 100644 --- a/webui/controller/health/worker.php +++ b/webui/controller/health/worker.php @@ -37,7 +37,9 @@ class ControllerHealthWorker extends Controller { foreach (Registry::get('health_smtp_servers') as $smtp) { - $this->data['health'][] = $this->model_health_health->checksmtp($smtp, $lang->data['text_error']); + if($smtp[0]) { + $this->data['health'][] = $this->model_health_health->checksmtp($smtp, $lang->data['text_error']); + } } if(ENABLE_SAAS == 1) {