Cast namespaceId to int in SpecialEditWatchlist::cleanupWatchlist
authoraddshore <addshorewiki@gmail.com>
Wed, 23 Mar 2016 21:21:00 +0000 (21:21 +0000)
committerCatrope <roan.kattouw@gmail.com>
Wed, 23 Mar 2016 21:36:55 +0000 (21:36 +0000)
Bug: T130778
Change-Id: I4b62e5b251f8c3d31aa2f76a9988b5cb7c8cf3b7

includes/specials/SpecialEditWatchlist.php

index dd440b9..9c1f224 100644 (file)
@@ -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 ) {