Last modified: 2010-05-15 16:03:30 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13931 - Divide by 0 error possible on SpecialStatisics.php
Divide by 0 error possible on SpecialStatisics.php
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-05-02 20:20 UTC by Christian Neubauer
Modified: 2010-05-15 16:03 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Christian Neubauer 2008-05-02 20:20:02 UTC
The line that formats the percentage of admins in SpecialStatistics.php divides by the number of users without first checking that it isn't 0.  On the off chance that someone has a wiki with no users, this will throw an error.
Comment 1 Aaron Schulz 2008-05-02 20:22:23 UTC
Fixed in r34136

Note You need to log in before you can comment on or make changes to this bug.