From a55c0c8f495e11f4429024a623f64159ce9c0fc9 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 28 Mar 2009 21:01:49 +0000 Subject: [PATCH] (bug 17964) Don't make namespaceDupes fail if someone actually has an empty interwiki table. --- RELEASE-NOTES | 1 + maintenance/namespaceDupes.php | 1 + 2 files changed, 2 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9f51e2e99a..72e967c1cf 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -298,6 +298,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 17374) Special:Export no longer exports two copies of the same page * (bug 18190) Proper parsing in MediaWiki:Sharedupload message * (bug 17617) HTML cleanup for ImagePage +* (bug 17964) namespaceDupes.php no longer fails on an empty interwiki table == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index c5b3ce9681..58615b6bf8 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -115,6 +115,7 @@ class NamespaceConflictChecker { private function getInterwikiList() { $result = $this->db->select( 'interwiki', array( 'iw_prefix' ) ); + $prefixes = array(); while( $row = $this->db->fetchObject( $result ) ) { $prefixes[] = $row->iw_prefix; } -- 2.20.1