Skip to content

Commit 337bf08

Browse files
jenkins-botGerrit Code Review
authored andcommitted
Merge "Cast namespaceId to int in SpecialEditWatchlist::cleanupWatchlist"
2 parents d7bad77 + 071d62e commit 337bf08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/specials/SpecialEditWatchlist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ private function cleanupWatchlist() {
414414
$action = $title ? 'cleaning up' : 'deleting';
415415
wfDebug( "User {$user->getName()} has broken watchlist item ns($namespace):$dbKey, $action.\n" );
416416

417-
$store->removeWatch( $user, new TitleValue( $namespace, $dbKey ) );
417+
$store->removeWatch( $user, new TitleValue( (int)$namespace, $dbKey ) );
418418

419419
// Can't just do an UPDATE instead of DELETE/INSERT due to unique index
420420
if ( $title ) {

0 commit comments

Comments
 (0)