diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php
index 194229725c3..329c9473cc7 100644
--- a/htdocs/categories/viewcat.php
+++ b/htdocs/categories/viewcat.php
@@ -374,7 +374,7 @@ if ($cats < 0) {
dol_print_error($db, $object->error, $object->errors);
} elseif (count($cats) < 1) {
print '
';
- print '| '.$langs->trans("NoSubCat").' | ';
+ print ''.$langs->trans("NoSubCat").' | ';
print '
';
} else {
$categstatic = new Categorie($db);
@@ -461,7 +461,7 @@ if ($cats < 0) {
print '';
print '| '.img_picto_common('', 'treemenu/branchbottom.gif').' | ';
- print ''.$langs->trans("NoCategoryYet").' | ';
+ print ''.$langs->trans("NoCategoryYet").' | ';
print ' | ';
print '
';
@@ -1145,7 +1145,7 @@ if ($type == Categorie::TYPE_USER) {
// List of warehouses
if ($type == Categorie::TYPE_WAREHOUSE) {
- if ($user->hasRight("warehouse", "read")) {
+ if ($user->hasRight("stock", "read")) {
$permission = $user->rights->stock->creer;
require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php';