From: Greg Sabino Mullane Date: Fri, 21 Mar 2008 02:16:28 +0000 (+0000) Subject: Revert last patch: not needed due to 32233. X-Git-Tag: 1.31.0-rc.0~48906 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=f373fa0eba5ab2cec1b7b2bb0758ceb5d358afc5;p=lhc%2Fweb%2Fwiklou.git Revert last patch: not needed due to 32233. --- diff --git a/includes/Article.php b/includes/Article.php index dd1ab2ce58..4404625ba2 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -3375,8 +3375,7 @@ class Article { foreach( $insertCats as $cat ) { $insertRows[] = array( 'cat_title' => $cat ); } - if ( count( $insertRows ) ) - $dbw->insert( 'category', $insertRows, __METHOD__, 'IGNORE' ); + $dbw->insert( 'category', $insertRows, __METHOD__, 'IGNORE' ); $addFields = array( 'cat_pages = cat_pages + 1' ); $removeFields = array( 'cat_pages = cat_pages - 1' );