increasing the scope of the variable

This commit is contained in:
NASDAMI Quatadah 2022-06-13 16:10:45 +02:00
parent 7ff9c86817
commit fe4dac5ecb

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);