Gerrit Patch Uploader has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/130644

Change subject: Fix division by zero in Special:WikiSets
......................................................................

Fix division by zero in Special:WikiSets

Bug: 58475
Change-Id: If141c70328812bb578de863c7be7e637239a7da0
---
M specials/SpecialWikiSets.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth 
refs/changes/44/130644/1

diff --git a/specials/SpecialWikiSets.php b/specials/SpecialWikiSets.php
index 9fabf6a..05e6eeb 100644
--- a/specials/SpecialWikiSets.php
+++ b/specials/SpecialWikiSets.php
@@ -232,6 +232,7 @@
                $count = count( $list );
                # If there are less items than columns, limit the number of 
columns
                $columns = $count < $columns ? $count : $columns;
+               $columns = $columns == 0 ? 1 : $columns;
                $itemsPerCol = round( $count / $columns );
                $i = 0;
                $splitLists = array();

-- 
To view, visit https://gerrit.wikimedia.org/r/130644
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If141c70328812bb578de863c7be7e637239a7da0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>
Gerrit-Reviewer: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to