LogEntry: Make newFromRow work with RC object
authornullzero <nullzero.free@gmail.com>
Tue, 31 Dec 2013 06:42:35 +0000 (01:42 -0500)
committerNikerabbit <niklas.laxstrom@gmail.com>
Tue, 31 Dec 2013 10:49:13 +0000 (10:49 +0000)
commit5c06f5f51743d3cde185d3c81b1d771e08863b14
tree0556ee3c417a5e44ed104caa4e5a7c1ef6e5061a
parentb9f291e8cd5bb1450f7b1031aa17cf7775aa7e96
LogEntry: Make newFromRow work with RC object

LogEntry::newFromRow is supposed to give a RCDatabaseLogEntry
if the given row is a RC log entry. The previous code only did
this if an array was passed as the $row argument.

This adds a type cast and fixes the function so that the proper
LogEntry subclass is returned no matter what variable type is
passed to the function.

Bug: 52053
Change-Id: I6f64358837b37c54d00a7544e9e8a92c216bbe89
includes/logging/LogEntry.php