mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #22346
[Bug 1393584] [NEW] getting quotausedpercent can cause 'divide by zero' error
Public bug reported:
If we set a user's quota to 0 it throws an error:
[WAR] bb (admin/users/edit.php:356) Division by zero
Call stack (most recent first):
log_message("Division by zero", 8, true, true, "/home/robertl/htdocs/mahara-devel/mahara/htdocs/ad...", 356) at /home/robertl/htdocs/mahara-devel/mahara/htdocs/lib/errors.php:439
error(2, "Division by zero", "/home/robertl/htdocs/mahara-devel/mahara/htdocs/ad...", 356, array(size 7)) at /home/robertl/htdocs/mahara-devel/mahara/htdocs/admin/users/edit.php:356
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
** Affects: mahara
Importance: Low
Assignee: Robert Lyon (robertl-9)
Status: In Progress
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1393584
Title:
getting quotausedpercent can cause 'divide by zero' error
Status in Mahara ePortfolio:
In Progress
Bug description:
If we set a user's quota to 0 it throws an error:
[WAR] bb (admin/users/edit.php:356) Division by zero
Call stack (most recent first):
log_message("Division by zero", 8, true, true, "/home/robertl/htdocs/mahara-devel/mahara/htdocs/ad...", 356) at /home/robertl/htdocs/mahara-devel/mahara/htdocs/lib/errors.php:439
error(2, "Division by zero", "/home/robertl/htdocs/mahara-devel/mahara/htdocs/ad...", 356, array(size 7)) at /home/robertl/htdocs/mahara-devel/mahara/htdocs/admin/users/edit.php:356
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1393584/+subscriptions
Follow ups
References