6.0.0-RC7
6/29/26

[#6238] Division by zero in whups\lib\Reports.php
Summary Division by zero in whups\lib\Reports.php
Queue Whups
Type Bug
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester paul.g.roy (at) uottawa (dot) ca
Created 2/10/08 (6714 days ago)
Due
Updated 2/11/08 (6713 days ago)
Assigned
Resolved 2/11/08 (6713 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
454 Chuck Hagenbuch Comment #2
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
Fixed in CVS, thanks!
289 paul (dot) g (dot) roy (at) uottawa (dot) ca Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Division by zero in whups\lib\Reports.php
Queue ⇒ Whups
Reply to this comment
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


Saved Queries