From 47da6793c5707980c6af54285d4a3b63aa49134e Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Tue, 16 Nov 2021 13:31:51 +0100 Subject: [PATCH] FIX: contact not listed if module mainling not active and contact has no email --- htdocs/contact/list.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php index 391535d784e..dc8c77d0e1e 100644 --- a/htdocs/contact/list.php +++ b/htdocs/contact/list.php @@ -75,7 +75,11 @@ $search_phone_pro = GETPOST("search_phone_pro", 'alpha'); $search_phone_mobile = GETPOST("search_phone_mobile", 'alpha'); $search_fax = GETPOST("search_fax", 'alpha'); $search_email = GETPOST("search_email", 'alpha'); -$search_no_email = GETPOST("search_no_email", 'int'); +if (!empty($conf->mailing->enabled)) { + $search_no_email = GETPOST("search_no_email", 'int'); +} else { + $search_no_email = -1; +} if (!empty($conf->socialnetworks->enabled)) { foreach ($socialnetworks as $key => $value) { if ($value['active']) {