From 358ac4cd3615cdd3c699e3bd046f3ccc8ad5b8a4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 27 Oct 2020 18:55:55 +0100 Subject: [PATCH] Fix scrutinizer --- htdocs/compta/paiement/list.php | 2 +- htdocs/core/lib/functions2.lib.php | 2 +- htdocs/fourn/paiement/list.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/paiement/list.php b/htdocs/compta/paiement/list.php index f3ea57ea084..b6dbd8195d1 100644 --- a/htdocs/compta/paiement/list.php +++ b/htdocs/compta/paiement/list.php @@ -78,7 +78,7 @@ $pagenext = $page + 1; if (!$sortorder) $sortorder = "DESC"; if (!$sortfield) $sortfield = "p.ref"; -$search_all = trim(GETPOSTISSET("search_all") ? GETPOSTISSET("search_all", 'alpha') : GETPOST('sall')); +$search_all = trim(GETPOSTISSET("search_all") ? GETPOST("search_all", 'alpha') : GETPOST('sall')); // List of fields to search into when doing a "search in all" $fieldstosearchall = array( diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 2f859d3093a..8f06c0958c0 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -492,7 +492,7 @@ function dolAddEmailTrackId($email, $trackingid) function isValidMailDomain($mail) { list($user, $domain) = explode("@", $mail, 2); - return ($domain ? isValidMXRecord($domain, "MX") : 0); + return ($domain ? isValidMXRecord($domain) : 0); } /** diff --git a/htdocs/fourn/paiement/list.php b/htdocs/fourn/paiement/list.php index 0310a75fe57..bbb469e4ffd 100644 --- a/htdocs/fourn/paiement/list.php +++ b/htdocs/fourn/paiement/list.php @@ -86,7 +86,7 @@ $pagenext = $page + 1; if (!$sortorder) $sortorder = "DESC"; if (!$sortfield) $sortfield = "p.datep"; -$search_all = trim(GETPOSTISSET("search_all") ? GETPOSTISSET("search_all", 'alpha') : GETPOST('sall')); +$search_all = trim(GETPOSTISSET("search_all") ? GETPOST("search_all", 'alpha') : GETPOST('sall')); // List of fields to search into when doing a "search in all" $fieldstosearchall = array(