Florianschmidtwelzow has uploaded a new change for review.

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

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(-)


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

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: newchange
Gerrit-Change-Id: I2c222f11a1312406765a5cf2a7c5e3996218ed19
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>

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

Reply via email to