66 <?php include __DIR__ . '/../common-head-elements.php ' ?>
77
88 <?php
9- $ siteKey = htmlentities ($ this ->data ['recaptcha.siteKey ' ]);
9+ $ siteKey = htmlentities ($ this ->data ['recaptcha.siteKey ' ] ?? null );
1010 if (! empty ($ siteKey )) {
1111 ?>
1212 <script src='https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoad&render=explicit'
@@ -67,7 +67,7 @@ function onRecaptchaLoad() {
6767 <?= $ this ->t ('{material:login:label_username} ' ) ?>
6868 </label>
6969 <?php
70- $ username = htmlentities ($ this ->data ['username ' ]);
70+ $ username = htmlentities ($ this ->data ['username ' ] ?? null );
7171 ?>
7272 <input type="text" name="username" class="mdl-textfield__input"
7373 value="<?= $ username ?> "
@@ -84,10 +84,10 @@ function onRecaptchaLoad() {
8484 </div>
8585
8686 <?php
87- $ errorCode = htmlentities ($ this ->data ['errorcode ' ]);
87+ $ errorCode = htmlentities ($ this ->data ['errorcode ' ] ?? null );
8888 if ($ errorCode == 'WRONGUSERPASS ' ) {
8989 $ errorMessageKey = $ this ->data ['errorparams ' ][1 ] ?? '{material:login:error_wronguserpass} ' ;
90- $ errorMessageTokens = $ this ->data ['errorparams ' ][2 ];
90+ $ errorMessageTokens = $ this ->data ['errorparams ' ][2 ] ?? null ;
9191
9292 $ message = htmlentities ($ this ->t ($ errorMessageKey , $ errorMessageTokens ));
9393 ?>
@@ -108,7 +108,7 @@ function onRecaptchaLoad() {
108108
109109 <div class="mdl-card__actions" layout-children="row">
110110 <?php
111- $ forgotPasswordUrl = htmlentities ($ this ->data ['forgotPasswordUrl ' ]);
111+ $ forgotPasswordUrl = htmlentities ($ this ->data ['forgotPasswordUrl ' ] ?? null );
112112 if (! empty ($ forgotPasswordUrl )) {
113113 ?>
114114 <a href="<?= $ forgotPasswordUrl ?> " target="_blank"
0 commit comments