[Tickets #6238] Division by zero in whups\lib\Reports.php

bugs at horde.org bugs at horde.org
Sun Feb 10 21:07:28 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=6238
-----------------------------------------------------------------------
 Ticket             | 6238
 Created By         | paul.g.roy at uottawa.ca
 Summary            | Division by zero in whups\lib\Reports.php
 Queue              | Whups
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Milestone          | 
 Patch              | 
 Owners             | 
-----------------------------------------------------------------------


paul.g.roy at uottawa.ca (2008-02-10 16:07) wrote:

The math operations in lines 186 to 193 should be wrapped in if-else
statements in the event the dataset contains 0 tickets:

[10-Feb-2008 15:45:28] PHP Warning:  Division by zero in
\ssms\whups\lib\Reports.php on line 192

[10-Feb-2008 15:45:28] PHP Warning:  max() [<a
href='function.max'>function.max</a>]: Array must contain atleast one
element in \ssms\whups\lib\Reports.php on line 189

[10-Feb-2008 15:45:28] PHP Warning:  min() [<a
href='function.min'>function.min</a>]: Array must contain atleast one
element in \ssms\whups\lib\Reports.php on line 189

Versions:
whups/lib/Reports.php,v 1.32 2008/01/02
Horde 4.0 cvs retrieved Feb 9/2008




More information about the bugs mailing list