SpecialWantedcategories: Actually strike the category if it was emptied
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 18 Jan 2014 11:23:18 +0000 (12:23 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Sat, 18 Jan 2014 11:23:18 +0000 (12:23 +0100)
Followup to a237f778.

Change-Id: I73d8b609da1ddad846c2dbd17cd6e4c74b1e3314

includes/specials/SpecialWantedcategories.php

index c8ba4ac..51d9af3 100644 (file)
@@ -73,7 +73,7 @@ class WantedCategoriesPage extends WantedQueryPage {
                        __METHOD__
                );
                foreach ( $categoryRes as $row ) {
-                       $this->currentCategoryCounts[ $row->cat_title ] = $row->cat_pages;
+                       $this->currentCategoryCounts[ $row->cat_title ] = intval( $row->cat_pages );
                }
 
                // Back to start for display