File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -173,16 +173,16 @@ public function getConfig(): array
173173 if ($ config ['shield.settings ' ]['shield_enable ' ]) {
174174 if (isset ($ _SERVER ['SHIELD_USERNAME ' ])) {
175175 $ config ['shield.settings ' ]['credentials ' ]['shield ' ]['user ' ] = $ _SERVER ['SHIELD_USERNAME ' ];
176- }
177- else {
176+ } elseif (isset ($ _SERVER ['SHIELD ' ])) {
178177 $ config ['shield.settings ' ]['credentials ' ]['shield ' ]['user ' ] = $ _SERVER ['SHIELD ' ];
179178 }
179+
180180 if (isset ($ _SERVER ['SHIELD_PASSWORD ' ])) {
181181 $ config ['shield.settings ' ]['credentials ' ]['shield ' ]['pass ' ] = $ _SERVER ['SHIELD_PASSWORD ' ];
182- }
183- else {
182+ } elseif (isset ($ _SERVER ['SHIELD ' ])) {
184183 $ config ['shield.settings ' ]['credentials ' ]['shield ' ]['pass ' ] = $ _SERVER ['SHIELD ' ];
185184 }
185+
186186 if (isset ($ _SERVER ['SHIELD_MESSAGE ' ])) {
187187 $ config ['shield.settings ' ]['print ' ] = $ _SERVER ['SHIELD_MESSAGE ' ];
188188 }
You can’t perform that action at this time.
0 commit comments