getting quotausedpercent can cause 'divide by zero' error
Bug #1393584 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Robert Lyon |
Bug Description
If we set a user's quota to 0 it throws an error:
[WAR] bb (admin/
Call stack (most recent first):
log_
error(2, "Division by zero", "/home/
Normally we wouldn't be setting a user's quota to 0 - but for automated tests this can make sense.
So it is useful to fix for that reason.
Noticed when running webservices phpunit tests
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Patch for "master" branch: https:/ /reviews. mahara. org/3986