- SpecialEditcount.php Tue Dec 27 17:43:41 2005
+++ SpecialEditcount.php.new Tue Dec 27 12:38:48 2005
@@ -241,7 +245,7 @@
$total = wfMsgHtml( 'editcount_total' ); $ftotal = $wgLang->formatNum( $this->total );
- $percent = wfPercent( $this->total / $this->total * 100 , 2 );
+ if ($total > 0 ) $percent = wfPercent( $this->total / $this-
total * 100 , 2 );
otherwise you get an division / 0 when total equals 0.
Version: unspecified
Severity: minor
URL: http://cvs.sourceforge.net/viewcvs.py/wikipedia/extensions/Editcount/