This mail is an automated notification from the bugs tracker
 of the project: GLPI.




/**************************************************************************/
[bugs #469] Full Item Snapshot:

URL: <http://gna.org/bugs/?func=detailitem&item_id=469>
Project: GLPI
Submitted by: Jean-Mathieu Doléans
On: jeu 01.07.2004 à 16:19

Category:  None
Severity:  1 - None
Priority:  1 - Later
Resolution:  None
Privacy:  Public
Assigned to:  None
Originator Email:  
Status:  Open


Summary:  errreur dans les  fonctions de stats user

Original Submission:  Les fonctions de stats user, technicien et lieux 
présentent un bug

lorsqu'il n'y avait aucun élément du type concerné : la fonction

getNbInterv<truc> renvoit 0 dans ce cas, ce qui ne plait pas (à juste

titre) au foreach qui suit.



Ci-joint un patch qui corrige les 3 fichiers concernés en encapsulant

les opérations sur le tableau dans un test is_array() sur la variable

qui reçoit le retour du getNbInterv<truc>.





Documents joints
-------------------

-------------------------------------------------------
Date: jeu 01.07.2004 à 16:19  Name: patch_glpi_stat.gz  Size: 767KB   By: 
silvermat
patch
http://gna.org/bugs/download.php?item_id=469&amp;item_file_id=23






For detailed info, follow this link:
<http://gna.org/bugs/?func=detailitem&item_id=469>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


Répondre à