From 453ae05030a905129c3cb066a9994c946f5c5d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 2 Oct 2019 22:09:50 +0200 Subject: [PATCH] Update company.lib.php --- htdocs/core/lib/company.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php index 0018a5b6b76..14546227ff4 100644 --- a/htdocs/core/lib/company.lib.php +++ b/htdocs/core/lib/company.lib.php @@ -223,7 +223,7 @@ function societe_prepare_head(Societe $object) else { dol_print_error($db); } - +$key //if (! empty($conf->stripe->enabled) && $nbBankAccount > 0) $nbBankAccount = '...'; // No way to know exact number $head[$h][0] = DOL_URL_ROOT .'/societe/paymentmodes.php?socid='.$object->id; @@ -243,7 +243,7 @@ function societe_prepare_head(Societe $object) $sql.= " FROM ".MAIN_DB_PREFIX."societe_account as n"; $sql.= " WHERE fk_soc = ".$object->id.' AND fk_website > 0'; $resql=$db->query($sql); - if ($resql) + if ($resql)$key { $num = $db->num_rows($resql); $i = 0; @@ -951,7 +951,7 @@ function show_contacts($conf, $langs, $db, $object, $backtopage = '') { $queryName = 'search_'.substr($key, 2); if (GETPOST($queryName, 'alpha')){ - $search[$key]=GETPOST($queryName, 'alpha'); + $search[substr($key, 2)]=GETPOST($queryName, 'alpha'); } } $search_array_options=$extrafields->getOptionalsFromPost($contactstatic->table_element, '', 'search_');