Check for valid user info before calling Linker::userLink() in Linker::revUserTools()
authorBill Pirkle <bpirkle@wikimedia.org>
Mon, 10 Jun 2019 22:26:24 +0000 (17:26 -0500)
committerBill Pirkle <bpirkle@wikimedia.org>
Mon, 10 Jun 2019 23:22:17 +0000 (18:22 -0500)
commit5830ca7a2f3a2a82feb4f9f2a0c26f98a5cc54d6
tree22e401467f19281b9a50418db9677d3a44731635
parentbc77f369c279deafbad64f7b691b389259d38adf
Check for valid user info before calling Linker::userLink() in Linker::revUserTools()

If an actor table row has neither an actor_user nor an actor_name
value (which should not have happened, but did), we would call
Linker::revUserTools() with no valid user info. This generated
log noise and displayed bad output. Instead, check for valid user
info, and fall back to a default message if necessary. T225469
exists for correcting the underlying bad data, but adding this
check is still prudent.

Bug: T224368
Change-Id: Ib9816d8b87b995f4fe465004acd608225728e391
includes/Linker.php