diff --git a/htdocs/document.php b/htdocs/document.php
index 8b35a7bb743..8d0b6d457c1 100644
--- a/htdocs/document.php
+++ b/htdocs/document.php
@@ -309,7 +309,7 @@ if ($modulepart)
if ($modulepart == 'ecm')
{
$user->getrights('ecm');
- if ($user->rights->ecm->lire)
+ if ($user->rights->ecm->read)
{
$accessallowed=1;
}
diff --git a/htdocs/ecm/docmine.php b/htdocs/ecm/docmine.php
index 00a9bd9494e..880188c5033 100644
--- a/htdocs/ecm/docmine.php
+++ b/htdocs/ecm/docmine.php
@@ -190,7 +190,6 @@ while ($tmpecmdir && $result > 0)
{
$tmpecmdir=0;
}
- print 'S : '.$result->label.'
';
}
//print img_picto('','object_dir').' '.$langs->trans("ECMRoot").'';
print $s;