Reduce contention of getScopedLockAndFlush() callers by using the DB domain in the key
[lhc/web/wiklou.git] / includes / Linker.php
index f3d492f..2e0011c 100644 (file)
@@ -1121,7 +1121,7 @@ class Linker {
                ) {
                        $userId = $rev->getUser( Revision::FOR_THIS_USER );
                        $userText = $rev->getUserText( Revision::FOR_THIS_USER );
-                       if ( $userId && $userText ) {
+                       if ( $userId || (string)$userText !== '' ) {
                                $link = self::userLink( $userId, $userText )
                                        . self::userToolLinks( $userId, $userText, false, 0, null,
                                                $useParentheses );