diff --git a/htdocs/admin/company.php b/htdocs/admin/company.php
index b82f0fcd765..cac436955f5 100644
--- a/htdocs/admin/company.php
+++ b/htdocs/admin/company.php
@@ -393,18 +393,18 @@ print '
| '.$langs->trans(
// Name
print ' |
|---|
| ';
-print 'global->MAIN_INFO_SOCIETE_NOM) ? ' autofocus="autofocus"' : '').'> |
'."\n";
+print 'global->MAIN_INFO_SOCIETE_NOM) ? ' autofocus="autofocus"' : '').'>'."\n";
// Address
print ' | ';
-print ' |
'."\n";
+print ''."\n";
// Zip
print ' | ';
-print ' |
'."\n";
+print ''."\n";
print ' | ';
-print ' |
'."\n";
+print ''."\n";
// Country
print ' | ';
@@ -431,25 +431,25 @@ print ' |
'."\n";
// Phone
print ' | ';
print img_picto('', 'object_phoning', '', false, 0, 0, '', 'paddingright');
-print ' |
';
+print '';
print ''."\n";
// Fax
print ' | ';
print img_picto('', 'object_phoning_fax', '', false, 0, 0, '', 'paddingright');
-print ' |
';
+print '';
print ''."\n";
// Email
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";
// Barcode
@@ -457,7 +457,7 @@ if (!empty($conf->barcode->enabled)) {
print '| ';
print ' | ';
print '';
- print ' |
';
+ print '';
print '';
}
@@ -534,7 +534,7 @@ print '';
// Note
print ' | ';
-print ' |
';
+print '';
print '';
print '';
@@ -549,17 +549,17 @@ $langs->load("companies");
// Managing Director(s)
print ' | ';
-print ' |
';
+print '';
// GDPR contact
print '| ';
print $form->textwithpicto($langs->trans("GDPRContact"), $langs->trans("GDPRContactDesc"));
print ' | ';
-print ' |
';
+print '';
// Capital
print ' | ';
-print ' |
';
+print '';
// Juridical Status
print ' | ';
diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php
index 11e67104f9a..ac9285363d7 100644
--- a/htdocs/core/class/translate.class.php
+++ b/htdocs/core/class/translate.class.php
@@ -731,7 +731,7 @@ class Translate
*/
public function transcountry($str, $countrycode)
{
- if ($this->tab_translate["$str$countrycode"]) return $this->trans("$str$countrycode");
+ if (!empty($this->tab_translate["$str$countrycode"])) return $this->trans("$str$countrycode");
else return $this->trans($str);
}
diff --git a/htdocs/core/modules/modStock.class.php b/htdocs/core/modules/modStock.class.php
index c15f041d21d..1e36bcb66ff 100644
--- a/htdocs/core/modules/modStock.class.php
+++ b/htdocs/core/modules/modStock.class.php
@@ -254,7 +254,7 @@ class modStock extends DolibarrModules
$this->export_sql_end[$r] .= ' AND e.entity IN ('.getEntity('stock').')';
// Export stock including batch number
- if ($conf->productbatch->enabled)
+ if (!empty($conf->productbatch->enabled))
{
$langs->load("productbatch");
diff --git a/htdocs/core/tpl/passwordforgotten.tpl.php b/htdocs/core/tpl/passwordforgotten.tpl.php
index 937ee63a68c..44d3c0199ac 100644
--- a/htdocs/core/tpl/passwordforgotten.tpl.php
+++ b/htdocs/core/tpl/passwordforgotten.tpl.php
@@ -81,9 +81,9 @@ $(document).ready(function () {
@@ -113,7 +113,7 @@ if ($disablenofollow) echo '';
-
+
|