From 804b7f1f0faff301efd2aeff09e121609e77b96e Mon Sep 17 00:00:00 2001 From: "Ariel T. Glenn" Date: Sat, 6 Apr 2019 12:24:30 +0300 Subject: [PATCH] for exports, make sure we compare page titles as strings only ...and not as numbers!! Also added strict compare for the namespaces field while we're in here. Bug: T220257 Change-Id: If68b79334188c2f3be5d254bea3c1e27d52c4a9f --- includes/export/WikiExporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/export/WikiExporter.php b/includes/export/WikiExporter.php index 120632c365..e02cd8347c 100644 --- a/includes/export/WikiExporter.php +++ b/includes/export/WikiExporter.php @@ -469,8 +469,8 @@ class WikiExporter { protected function outputPageStreamBatch( $results, $lastRow ) { foreach ( $results as $row ) { if ( $lastRow === null || - $lastRow->page_namespace != $row->page_namespace || - $lastRow->page_title != $row->page_title ) { + $lastRow->page_namespace !== $row->page_namespace || + $lastRow->page_title !== $row->page_title ) { if ( $lastRow !== null ) { $output = ''; if ( $this->dumpUploads ) { -- 2.20.1