diff --git a/htdocs/admin/emailcollector_card.php b/htdocs/admin/emailcollector_card.php
index eaef18c9543..fcbfbbeaa86 100644
--- a/htdocs/admin/emailcollector_card.php
+++ b/htdocs/admin/emailcollector_card.php
@@ -404,7 +404,6 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
else
{
- //$morehtmlstatus .= imap_num_msg($connection).'
';
$morehtml .= imap_num_msg($connection);
}
diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php
index 81685f3fda8..41b3e12a196 100644
--- a/htdocs/comm/index.php
+++ b/htdocs/comm/index.php
@@ -51,7 +51,7 @@ if (isset($user->societe_id) && $user->societe_id > 0)
$socid = $user->societe_id;
}
-$max=5;
+$max=3;
$now=dol_now();
/*
@@ -464,7 +464,6 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande
print '
';
-$NBMAX=3;
$max=3;
diff --git a/htdocs/hrm/index.php b/htdocs/hrm/index.php
index 5344e3765d7..3129760bc7a 100644
--- a/htdocs/hrm/index.php
+++ b/htdocs/hrm/index.php
@@ -37,7 +37,7 @@ if ($conf->expensereport->enabled) require_once DOL_DOCUMENT_ROOT.'/expenserepor
require_once DOL_DOCUMENT_ROOT.'/holiday/class/holiday.class.php';
// Load translation files required by the page
-$langs->loadLangs(array('users', 'holidays', 'trips'));
+$langs->loadLangs(array('users', 'holidays', 'trips', 'boxes'));
$socid=GETPOST("socid","int");
@@ -49,6 +49,8 @@ if (empty($conf->global->MAIN_INFO_SOCIETE_NOM) || empty($conf->global->MAIN_INF
$holiday = new Holiday($db);
$holidaystatic=new Holiday($db);
+$max=3;
+
/*
@@ -161,10 +163,6 @@ if (! empty($conf->holiday->enabled))
print '
';
-$max=10;
-
-$langs->load("boxes");
-
// Latest leave requests
diff --git a/htdocs/projet/index.php b/htdocs/projet/index.php
index e613c5642ad..870a84202b1 100644
--- a/htdocs/projet/index.php
+++ b/htdocs/projet/index.php
@@ -45,6 +45,9 @@ if (!$user->rights->projet->lire) accessforbidden();
$sortfield = GETPOST("sortfield",'alpha');
$sortorder = GETPOST("sortorder",'alpha');
+$max=3;
+
+
/*
* View
@@ -162,8 +165,6 @@ print_projecttasks_array($db, $form, $socid, $projectsListId, 0, 0, $listofoppst
print '
';
-$max=5;
-
// Last modified projects
$sql = "SELECT p.rowid, p.ref, p.title, p.fk_statut, p.tms as datem,";
$sql.= " s.rowid as socid, s.nom as name, s.email, s.client, s.fournisseur, s.code_client, s.code_fournisseur, s.canvas";