Use safe attribute accessor for RecentChange
authorBryan Davis <bd808@wikimedia.org>
Fri, 22 Aug 2014 15:44:15 +0000 (09:44 -0600)
committerLegoktm <legoktm.wikipedia@gmail.com>
Sat, 13 Sep 2014 05:02:33 +0000 (05:02 +0000)
commit78695ada64118461969f7a7b4ae0fec128505dd8
tree7a63b10809777f764cf6fc76ba32793b2fda50d3
parent502fffe3bf2cb6a8fccb8059436a038e21153596
Use safe attribute accessor for RecentChange

The RecentChange does not guarantee that all attributes are populated.
Handily it provides a safe getter function in
RecentChange::getAttribute() that will return null with out triggering
an undefined index warning for missing attributes. Protects against log
spam like "Notice: Undefined index: rc_id".

Change-Id: Idee844f0d40a2a084e17f201b5e1501d59a0464d
includes/rcfeed/MachineReadableRCFeedFormatter.php