File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 7878 }
7979 }
8080
81- $ validBarco = $ _POST ["validBarco " ];
81+ $ validBarco = $ _POST ["validBarco " ] ?? "" ;
8282 $ validData = $ copy ->validateData ($ validBarco );
8383 if (!$ validData ) {
8484 $ copyQ ->close ();
Original file line number Diff line number Diff line change 1414 #****************************************************************************
1515 #* Checking for post vars. Go back to form if none found.
1616 #****************************************************************************
17- $ pageErrors = "" ;
17+ $ pageErrors = array () ;
1818 if (count ($ _POST ) == 0 ) {
1919 header ("Location: ../shared/loginform.php " );
2020 exit ();
2323 #****************************************************************************
2424 #* Username edits
2525 #****************************************************************************
26- $ username = $ _POST ["username " ];
26+ $ username = $ _POST ["username " ] ?? "" ;
2727 if ($ username == "" ) {
2828 $ error_found = true ;
2929 $ pageErrors ["username " ] = $ loc ->getText ("loginUserNameReqErr " );
3333 #* Password edits
3434 #****************************************************************************
3535 $ error_found = false ;
36- $ pwd = $ _POST ["pwd " ];
36+ $ pwd = $ _POST ["pwd " ] ?? "" ;
3737 if ($ pwd == "" ) {
3838 $ error_found = true ;
3939 $ pageErrors ["pwd " ] = $ loc ->getText ("loginPwdReqErr " );
You can’t perform that action at this time.
0 commit comments