From cdd91bcb9b95e7313369ed06c091ba1803e1a700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Peters?= Date: Thu, 5 Sep 2019 10:54:35 +0200 Subject: [PATCH] Update functions.mailbox.inc.php --- data/web/inc/functions.mailbox.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/functions.mailbox.inc.php b/data/web/inc/functions.mailbox.inc.php index ad5f4156..a7fcaf13 100644 --- a/data/web/inc/functions.mailbox.inc.php +++ b/data/web/inc/functions.mailbox.inc.php @@ -718,7 +718,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) { WHERE `domain`= :target_domain AND `backupmx` = '1'"); $stmt->execute(array(':target_domain' => $target_domain)); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); - if ($num_results == 0) { + if ($num_results == 1) { $_SESSION['return'][] = array( 'type' => 'danger', 'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),