Give objects to DatabaseLogEntry::newFromRow
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 22 Feb 2015 10:36:00 +0000 (11:36 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 22 Feb 2015 10:36:00 +0000 (11:36 +0100)
No need to cast to array, because the called function will recast to
object.

Change-Id: I0eaa62450a0ebcc9ab8458b225dfadb71197a2ad

includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryWatchlist.php

index b6ef604..fd73afb 100644 (file)
@@ -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,
index 6e60fe4..2cea1a6 100644 (file)
@@ -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,