Merge pull request #21250 from Quatadah/dolicloud-qnasdami-scrutinizer-005

BUG FIX : increasing the scope of the variable
This commit is contained in:
Laurent Destailleur 2022-06-14 19:01:47 +02:00 committed by GitHub
commit 34d3d2695e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,7 @@ class box_project extends ModeleBoxes
$textHead = $langs->trans("OpenedProjects");
$this->info_box_head = array('text' => $textHead, 'limit'=> dol_strlen($textHead));
$i = 0;
// list the summary of the orders
if ($user->rights->projet->lire) {
include_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
@ -113,7 +114,6 @@ class box_project extends ModeleBoxes
if ($result) {
$num = $this->db->num_rows($result);
$i = 0;
while ($i < min($num, $max)) {
$objp = $this->db->fetch_object($result);