From 071d62ea3cc9b3c3ac9f7efd4a0069f49b15c19d Mon Sep 17 00:00:00 2001 From: addshore Date: Wed, 23 Mar 2016 21:21:00 +0000 Subject: [PATCH] Cast namespaceId to int in SpecialEditWatchlist::cleanupWatchlist Bug: T130778 Change-Id: I4b62e5b251f8c3d31aa2f76a9988b5cb7c8cf3b7 --- includes/specials/SpecialEditWatchlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialEditWatchlist.php b/includes/specials/SpecialEditWatchlist.php index dd440b9689..9c1f224391 100644 --- a/includes/specials/SpecialEditWatchlist.php +++ b/includes/specials/SpecialEditWatchlist.php @@ -414,7 +414,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage { $action = $title ? 'cleaning up' : 'deleting'; wfDebug( "User {$user->getName()} has broken watchlist item ns($namespace):$dbKey, $action.\n" ); - $store->removeWatch( $user, new TitleValue( $namespace, $dbKey ) ); + $store->removeWatch( $user, new TitleValue( (int)$namespace, $dbKey ) ); // Can't just do an UPDATE instead of DELETE/INSERT due to unique index if ( $title ) { -- 2.20.1