diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index aca1e0b7e3b..ea5de0eb938 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -1185,7 +1185,7 @@ if ($action == 'create') {
$formactions->form_select_status_action('formaction', $percent, 1, 'complete', 0, 0, 'maxwidth200');
print '';
- if ($conf->categorie->enabled) {
+ if (!empty($conf->categorie->enabled)) {
// Categories
print '
| '.$langs->trans("Categories").' | ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_ACTIONCOMM, '', 'parent', 64, 0, 1);
@@ -1201,7 +1201,7 @@ if ($action == 'create') {
print '';
- if ($conf->societe->enabled) {
+ if (!empty($conf->societe->enabled)) {
// Related company
print '| '.$langs->trans("ActionOnCompany").' | ';
if (GETPOST('socid', 'int') > 0) {
@@ -1693,7 +1693,7 @@ if ($id > 0) {
print ' | ';
// Tags-Categories
- if ($conf->categorie->enabled) {
+ if (!empty($conf->categorie->enabled)) {
print '| '.$langs->trans("Categories").' | ';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_ACTIONCOMM, '', 'parent', 64, 0, 1);
$c = new Categorie($db);
@@ -1714,7 +1714,7 @@ if ($id > 0) {
print '';
- if ($conf->societe->enabled) {
+ if (!empty($conf->societe->enabled)) {
// Related company
print '| '.$langs->trans("ActionOnCompany").' | ';
print '';
@@ -2099,7 +2099,7 @@ if ($id > 0) {
}
// Categories
- if ($conf->categorie->enabled) {
+ if (!empty($conf->categorie->enabled)) {
print ' | | '.$langs->trans("Categories").' | ';
print $form->showCategories($object->id, Categorie::TYPE_ACTIONCOMM, 1);
print " | ";
@@ -2114,7 +2114,7 @@ if ($id > 0) {
print '';
print '';
- if ($conf->societe->enabled) {
+ if (!empty($conf->societe->enabled)) {
// Related company
print '| '.$langs->trans("ActionOnCompany").' | '.($object->thirdparty->id ? $object->thirdparty->getNomUrl(1) : (''.$langs->trans("None").''));
if (is_object($object->thirdparty) && $object->thirdparty->id > 0 && $object->type_code == 'AC_TEL') {
| | |