Skip to content

Commit a110ee5

Browse files
committed
fixed invalid array keys
1 parent 2ea6931 commit a110ee5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/catalog/biblio_copy_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
}
7979
}
8080

81-
$validBarco = $_POST["validBarco"];
81+
$validBarco = $_POST["validBarco"] ?? "";
8282
$validData = $copy->validateData($validBarco);
8383
if (!$validData) {
8484
$copyQ->close();

src/shared/login.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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();
@@ -23,7 +23,7 @@
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");
@@ -33,7 +33,7 @@
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");

0 commit comments

Comments
 (0)