From fd4f82b1b72828d06ba3b13c77ec21edc513cb5c Mon Sep 17 00:00:00 2001
From: wdammak <26695620+wdammak@users.noreply.github.com>
Date: Fri, 15 Feb 2019 05:32:01 +0100
Subject: [PATCH] Fix conflict
---
htdocs/user/card.php | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index f4482a9e872..fc6d7793330 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -1110,8 +1110,7 @@ if ($action == 'create' || $action == 'adduserldap')
{
print '
| ' . $form->editfieldkey('Categories', 'usercats', '', $object, 0) . ' | ';
$cate_arbo = $form->select_all_categories('user', null, 'parent', null, null, 1);
- print $form->multiselectarray('usercats', $cate_arbo, GETPOST('usercats', 'array'), null, null, null,
- null, '90%' );
+ print $form->multiselectarray('usercats', $cate_arbo, GETPOST('usercats', 'array'), null, null, null, null, '90%');
print " |
";
}
@@ -1630,9 +1629,9 @@ else
// Categories
if (! empty($conf->categorie->enabled) && ! empty($user->rights->categorie->lire))
{
- print '| ' . $langs->trans( "Categories" ) . ' | ';
+ print '
| ' . $langs->trans("Categories") . ' | ';
print '';
- print $form->showCategories( $object->id, 'user', 1 );
+ print $form->showCategories($object->id, 'user', 1);
print ' |
';
}
@@ -2397,21 +2396,21 @@ else
print '';
// Categories
- if (!empty( $conf->categorie->enabled ) && !empty( $user->rights->categorie->lire ))
+ if (!empty($conf->categorie->enabled) && !empty($user->rights->categorie->lire))
{
print '| ' . $form->editfieldkey('Categories', 'usercats', '', $object, 0) . ' | ';
print '';
- $cate_arbo = $form->select_all_categories( Categorie::TYPE_USER, null, null, null, null, 1 );
- $c = new Categorie( $db );
+ $cate_arbo = $form->select_all_categories(Categorie::TYPE_USER, null, null, null, null, 1);
+ $c = new Categorie($db);
$cats = $c->containing($object->id, Categorie::TYPE_USER);
foreach ($cats as $cat) {
$arrayselected[] = $cat->id;
}
if ($caneditfield)
{
- print $form->multiselectarray( 'usercats', $cate_arbo, $arrayselected, '', 0, '', 0, '90%' );
+ print $form->multiselectarray('usercats', $cate_arbo, $arrayselected, '', 0, '', 0, '90%');
}else{
- print $form->showCategories( $object->id, 'user', 1 );
+ print $form->showCategories($object->id, 'user', 1);
}
print " |
";
}