MaxSem has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/167969

Change subject: Fix undefined index 'lastmodifiedby' notices
......................................................................

Fix undefined index 'lastmodifiedby' notices

Change-Id: I2cac90492d400e3cfdcdb78cfc0a7cb7438d68ef
(cherry picked from commit cc1e220c6ce67d65e7c1d98836060e5282b75dcb)
---
M includes/api/ApiMobileView.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/69/167969/1

diff --git a/includes/api/ApiMobileView.php b/includes/api/ApiMobileView.php
index c0d34fb..70fffc0 100644
--- a/includes/api/ApiMobileView.php
+++ b/includes/api/ApiMobileView.php
@@ -94,7 +94,9 @@
                }
                if ( isset( $prop['lastmodifiedby'] ) ) {
                        $this->getResult()->addValue( null, 
$this->getModuleName(),
-                               array( 'lastmodifiedby' => 
$data['lastmodifiedby'] )
+                               array(
+                                       'lastmodifiedby' => 
$data['lastmodifiedby'],
+                               )
                        );
                }
                if ( isset( $prop['revision'] ) ) {
@@ -544,6 +546,8 @@
                                'name' => $wp->getUserText(),
                                'gender' => $user->getOption( 'gender' ),
                        );
+               } else {
+                       $data['lastmodifiedby'] = null;
                }
                $data['revision'] = $title->getLatestRevID();
 

-- 
To view, visit https://gerrit.wikimedia.org/r/167969
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2cac90492d400e3cfdcdb78cfc0a7cb7438d68ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: wmf/1.25wmf4
Gerrit-Owner: MaxSem <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to