jenkins-bot has submitted this change and it was merged.

Change subject: Fix PHP Notice error in UserCreateLoginTemplate
......................................................................


Fix PHP Notice error in UserCreateLoginTemplate

Dont try to access an non existent index in array.

Follow up: I88945f355e66800eda17afbb0e95bc57d4a21bac

Bug: T87260
Change-Id: I2c222f11a1312406765a5cf2a7c5e3996218ed19
---
M includes/skins/UserAccountCreateMobileTemplate.php
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Jdlrobson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/skins/UserAccountCreateMobileTemplate.php 
b/includes/skins/UserAccountCreateMobileTemplate.php
index 45ab434..4301963 100644
--- a/includes/skins/UserAccountCreateMobileTemplate.php
+++ b/includes/skins/UserAccountCreateMobileTemplate.php
@@ -35,7 +35,9 @@
                if ( isset( $this->data['header'] ) ) {
                        $captchaHtml .= $this->data['header'];
                }
-               $captchaHtml .= $this->data['extrafields'];
+               if ( isset( $this->data['extrafields'] ) ) {
+                       $captchaHtml .= $this->data['extrafields'];
+               }
                $captcha = $this->handleCaptcha( $captchaHtml );
 
                $form =

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I2c222f11a1312406765a5cf2a7c5e3996218ed19
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to