From f373fa0eba5ab2cec1b7b2bb0758ceb5d358afc5 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 21 Mar 2008 02:16:28 +0000 Subject: [PATCH] Revert last patch: not needed due to 32233. --- includes/Article.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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' ); -- 2.20.1