From b7a2503bdaf3cc1f43acea960fa99efddd19649f Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 22 Feb 2015 11:36:00 +0100 Subject: [PATCH] Give objects to DatabaseLogEntry::newFromRow No need to cast to array, because the called function will recast to object. Change-Id: I0eaa62450a0ebcc9ab8458b225dfadb71197a2ad --- includes/api/ApiQueryRecentChanges.php | 2 +- includes/api/ApiQueryWatchlist.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index b6ef60460f..fd73afb5e0 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -534,7 +534,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { $vals['logid'] = intval( $row->rc_logid ); $vals['logtype'] = $row->rc_log_type; $vals['logaction'] = $row->rc_log_action; - $logEntry = DatabaseLogEntry::newFromRow( (array)$row ); + $logEntry = DatabaseLogEntry::newFromRow( $row ); ApiQueryLogEvents::addLogParams( $this->getResult(), $vals, diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index 6e60fe465e..2cea1a6908 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -412,7 +412,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { $vals['logid'] = intval( $row->rc_logid ); $vals['logtype'] = $row->rc_log_type; $vals['logaction'] = $row->rc_log_action; - $logEntry = DatabaseLogEntry::newFromRow( (array)$row ); + $logEntry = DatabaseLogEntry::newFromRow( $row ); ApiQueryLogEvents::addLogParams( $this->getResult(), $vals, -- 2.20.1