- $paramLines = explode( "\n", $row->log_params );
- $ids = explode( ',', $paramLines[0] ); // Array dereferencing is PHP >= 5.4 :(
- $result = $this->getDB( DB_SLAVE )->select( // Work out what log entries were changed here.
+ $ids = explode( ',', explode( "\n", $row->log_params )[0] );
+ $result = $this->getDB( DB_REPLICA )->select( // Work out what log entries were changed here.