From: umherirrender Date: Sun, 22 Feb 2015 10:36:00 +0000 (+0100) Subject: Give objects to DatabaseLogEntry::newFromRow X-Git-Tag: 1.31.0-rc.0~12309^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=b7a2503bdaf3cc1f43acea960fa99efddd19649f;p=lhc%2Fweb%2Fwiklou.git Give objects to DatabaseLogEntry::newFromRow No need to cast to array, because the called function will recast to object. Change-Id: I0eaa62450a0ebcc9ab8458b225dfadb71197a2ad --- 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,