Index: trunk/phase3/includes/User.php |
— | — | @@ -2582,13 +2582,14 @@ |
2583 | 2583 | $this->setNewtalk( false ); |
2584 | 2584 | return; |
2585 | 2585 | } |
2586 | | - if( $currentUser != 0 ) { |
| 2586 | + $id = $this->getId(); |
| 2587 | + if( $id != 0 ) { |
2587 | 2588 | $dbw = wfGetDB( DB_MASTER ); |
2588 | 2589 | $dbw->update( 'watchlist', |
2589 | 2590 | array( /* SET */ |
2590 | 2591 | 'wl_notificationtimestamp' => null |
2591 | 2592 | ), array( /* WHERE */ |
2592 | | - 'wl_user' => $this->getId() |
| 2593 | + 'wl_user' => $id |
2593 | 2594 | ), __METHOD__ |
2594 | 2595 | ); |
2595 | 2596 | # We also need to clear here the "you have new message" notification for the own user_talk page |