From d8e2e3c17ad69be7b763fe859ed5af0d22816170 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Mon, 9 Apr 2012 11:07:34 -0400 Subject: [PATCH] =?utf8?q?Bug=2035601=20=E2=80=94=20Watchlist=20doesn't=20?= =?utf8?q?show=20or=20count=20pages=20not=20in=20the=20main=20namespace=20?= =?utf8?q?when=20deleting=20them=20from=20the=20watchlist?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix with array_merge. Change-Id: I8055467a018f6eee6d55419576648e5a5fac0632 --- includes/specials/SpecialEditWatchlist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialEditWatchlist.php b/includes/specials/SpecialEditWatchlist.php index 296c98f2c3..fa483178ad 100644 --- a/includes/specials/SpecialEditWatchlist.php +++ b/includes/specials/SpecialEditWatchlist.php @@ -273,7 +273,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage { * * @param Title $title * @param int $namespace - * @param String $dbKey + * @param String $dbKey * @return bool: Whether this item is valid */ private function checkTitle( $title, $namespace, $dbKey ) { @@ -409,7 +409,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage { foreach( $data as $titles ) { $this->unwatchTitles( $titles ); - $removed += $titles; + $removed = array_merge( $removed, $titles ); } if( count( $removed ) > 0 ) { -- 2.20.1