From: Sam Reed Date: Fri, 1 Jul 2011 01:30:26 +0000 (+0000) Subject: Followup r91168, fix last usage of $currentUser which was undefined X-Git-Tag: 1.31.0-rc.0~29133 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=7d6d29cb7a8207c6a01c2efcecb606bae8cfef3f;p=lhc%2Fweb%2Fwiklou.git Followup r91168, fix last usage of $currentUser which was undefined --- diff --git a/includes/User.php b/includes/User.php index 4284550c0a..422a7cc400 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2582,13 +2582,14 @@ class User { $this->setNewtalk( false ); return; } - if( $currentUser != 0 ) { + $id = $this->getId(); + if( $id != 0 ) { $dbw = wfGetDB( DB_MASTER ); $dbw->update( 'watchlist', array( /* SET */ 'wl_notificationtimestamp' => null ), array( /* WHERE */ - 'wl_user' => $this->getId() + 'wl_user' => $id ), __METHOD__ ); # We also need to clear here the "you have new message" notification for the own user_talk page