increasing the scope of the variable
This commit is contained in:
parent
7ff9c86817
commit
fe4dac5ecb
@ -84,6 +84,7 @@ class box_project extends ModeleBoxes
|
|||||||
$textHead = $langs->trans("OpenedProjects");
|
$textHead = $langs->trans("OpenedProjects");
|
||||||
$this->info_box_head = array('text' => $textHead, 'limit'=> dol_strlen($textHead));
|
$this->info_box_head = array('text' => $textHead, 'limit'=> dol_strlen($textHead));
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
// list the summary of the orders
|
// list the summary of the orders
|
||||||
if ($user->rights->projet->lire) {
|
if ($user->rights->projet->lire) {
|
||||||
include_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
||||||
@ -113,7 +114,6 @@ class box_project extends ModeleBoxes
|
|||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $this->db->num_rows($result);
|
$num = $this->db->num_rows($result);
|
||||||
$i = 0;
|
|
||||||
while ($i < min($num, $max)) {
|
while ($i < min($num, $max)) {
|
||||||
$objp = $this->db->fetch_object($result);
|
$objp = $this->db->fetch_object($result);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user