diff --git a/htdocs/admin/accountant.php b/htdocs/admin/accountant.php
index 7a1d5b66ece..c8fccb6073d 100644
--- a/htdocs/admin/accountant.php
+++ b/htdocs/admin/accountant.php
@@ -114,57 +114,57 @@ print '
| '.$langs->trans(
// Name
print ' |
|---|
| ';
-print 'global->MAIN_OPTIMIZEFORTEXTBROWSER) ? '' : ' autofocus="autofocus"').'> |
'."\n";
+print 'global->MAIN_OPTIMIZEFORTEXTBROWSER) ? '' : ' autofocus="autofocus"').'>'."\n";
// Address
print ' | ';
-print ' |
'."\n";
+print ''."\n";
print ' | ';
-print ' |
'."\n";
+print ''."\n";
print ' | ';
-print ' |
'."\n";
+print ''."\n";
// Country
print ' | ';
print img_picto('', 'globe-americas', 'class="paddingrightonly"');
-print $form->select_country($conf->global->MAIN_INFO_ACCOUNTANT_COUNTRY, 'country_id');
+print $form->select_country((!empty($conf->global->MAIN_INFO_ACCOUNTANT_COUNTRY) ? $conf->global->MAIN_INFO_ACCOUNTANT_COUNTRY : GETPOST('country_id', 'int')), 'country_id');
if ($user->admin) print info_admin($langs->trans("YouCanChangeValuesForThisListFromDictionarySetup"), 1);
print ' |
'."\n";
print ' | ';
-$formcompany->select_departement($conf->global->MAIN_INFO_ACCOUNTANT_STATE, $conf->global->MAIN_INFO_ACCOUNTANT_COUNTRY, 'state_id');
+$formcompany->select_departement((!empty($conf->global->MAIN_INFO_ACCOUNTANT_STATE) ? $conf->global->MAIN_INFO_ACCOUNTANT_STATE : GETPOST('state_id', 'alpha')), (!empty($conf->global->MAIN_INFO_ACCOUNTANT_COUNTRY) ? $conf->global->MAIN_INFO_ACCOUNTANT_COUNTRY : GETPOST('country_id', 'int')), 'state_id');
print ' |
'."\n";
print ' | ';
print img_picto('', 'object_phoning', '', false, 0, 0, '', 'paddingright');
-print ' |
';
+print '';
print ''."\n";
print ' | ';
print img_picto('', 'object_phoning_fax', '', false, 0, 0, '', 'paddingright');
-print ' |
';
+print '';
print ''."\n";
print ' | ';
print img_picto('', 'object_email', '', false, 0, 0, '', 'paddingright');
-print ' |
';
+print '';
print ''."\n";
// Web
print ' | ';
print img_picto('', 'globe', '', false, 0, 0, '', 'paddingright');
-print ' |
';
+print '';
print ''."\n";
// Code
print ' | ';
-print ' |
'."\n";
+print ''."\n";
// Note
print ' | ';
-print ' |
';
+print '';
print '';
print '';
diff --git a/htdocs/admin/company_socialnetworks.php b/htdocs/admin/company_socialnetworks.php
index 5cbdb948b4a..93c6739d37d 100644
--- a/htdocs/admin/company_socialnetworks.php
+++ b/htdocs/admin/company_socialnetworks.php
@@ -117,11 +117,11 @@ foreach ($listofnetworks as $key => $value) {
$networkconstname = 'MAIN_INFO_SOCIETE_'.strtoupper($key).'_URL';
$networkconstid = 'MAIN_INFO_SOCIETE_'.strtoupper($key);
print '';
- print '';
+ print '';
print ' | ';
- print '';
+ print '';
print ' | ';
- print ''.dol_print_socialnetworks($conf->global->$networkconstid, 0, 0, $key, $listofnetworks).' | ';
+ print ''.dol_print_socialnetworks((!empty($conf->global->$networkconstid) ? dol_escape_htmltag($conf->global->$networkconstid) : ''), 0, 0, $key, $listofnetworks).' | ';
print ''."\n";
}
}
diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php
index e9984316394..4fc07fa1172 100644
--- a/htdocs/admin/modules.php
+++ b/htdocs/admin/modules.php
@@ -497,13 +497,19 @@ if ($mode == 'common' || $mode == 'commonkanban') {
dol_set_focus('#search_keyword');
print '