From: Bartosz DziewoƄski Date: Sat, 18 Jan 2014 11:23:18 +0000 (+0100) Subject: SpecialWantedcategories: Actually strike the category if it was emptied X-Git-Tag: 1.31.0-rc.0~17141^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=c2e953cf760e4a92e48044583f9be2d2d92e5ca1;p=lhc%2Fweb%2Fwiklou.git SpecialWantedcategories: Actually strike the category if it was emptied Followup to a237f778. Change-Id: I73d8b609da1ddad846c2dbd17cd6e4c74b1e3314 --- diff --git a/includes/specials/SpecialWantedcategories.php b/includes/specials/SpecialWantedcategories.php index c8ba4acb07..51d9af3fa1 100644 --- a/includes/specials/SpecialWantedcategories.php +++ b/includes/specials/SpecialWantedcategories.php @@ -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