MaxSem has uploaded a new change for review.
https://gerrit.wikimedia.org/r/167867
Change subject: Fix undefined index 'lastmodifiedby' notices
......................................................................
Fix undefined index 'lastmodifiedby' notices
Change-Id: I2cac90492d400e3cfdcdb78cfc0a7cb7438d68ef
---
M includes/api/ApiMobileView.php
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/67/167867/1
diff --git a/includes/api/ApiMobileView.php b/includes/api/ApiMobileView.php
index c0d34fb..9f3433a 100644
--- a/includes/api/ApiMobileView.php
+++ b/includes/api/ApiMobileView.php
@@ -94,7 +94,11 @@
}
if ( isset( $prop['lastmodifiedby'] ) ) {
$this->getResult()->addValue( null,
$this->getModuleName(),
- array( 'lastmodifiedby' =>
$data['lastmodifiedby'] )
+ array(
+ 'lastmodifiedby' => isset(
$data['lastmodifiedby'] )
+ ? $data['lastmodifiedby']
+ : null,
+ )
);
}
if ( isset( $prop['revision'] ) ) {
--
To view, visit https://gerrit.wikimedia.org/r/167867
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: master
Gerrit-Owner: MaxSem <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits