If $line is empty in EnhancedChangesList, don't try to access parts of array
authoraude <aude.wiki@gmail.com>
Wed, 4 May 2016 14:47:03 +0000 (10:47 -0400)
committerBryanDavis <bdavis@wikimedia.org>
Wed, 4 May 2016 15:57:06 +0000 (15:57 +0000)
commit4ae160aac7323bdab486933d187252c224ec10c0
tree5dc9863cee635143ac7b8a0b01e3b50f0a60f9fb
parent30aaec7b506e38ae628bbfd3b133bf43d58f12c1
If $line is empty in EnhancedChangesList, don't try to access parts of array

In getLineData, if the EnhancedChangesListModifyLineData hook returns false,
then $line is an empty array and recentChangesFlagsRaw is not set.

If $line is empty then presumably we don't want to render it and
can skip the line here.

Bug: T133296
Change-Id: I92fded07274a06a0dd2929b97815bfe56f1847ea
includes/changes/EnhancedChangesList.php