X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2FCategoriesRdf.php;h=eb601a20ae71941280a92bd8ab81f17537ecf812;hb=110df55da94c238a1258a1b5486ff0a1c26a4b38;hp=fc296d4c32469dbe6480f338cbbd0ae6f894b4dc;hpb=967a96e7fa5910f8fc451590decb381dbfb481ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoriesRdf.php b/includes/CategoriesRdf.php index fc296d4c32..eb601a20ae 100644 --- a/includes/CategoriesRdf.php +++ b/includes/CategoriesRdf.php @@ -85,6 +85,10 @@ class CategoriesRdf { * @param int $subcategories Subcategory count */ public function writeCategoryData( $categoryName, $isHidden, $pages, $subcategories ) { + if ( $pages < 0 ) { + // Bugfix for T201119 + $pages = 0; + } $title = Title::makeTitle( NS_CATEGORY, $categoryName ); $this->rdfWriter->about( $this->titleToUrl( $title ) ) ->say( 'a' )