@@ -1107,7 +1107,7 @@ private function loadPatronInfoFromDB($patronId, $password, $suppliedUsernameOrB
1107
1107
global $ logger ;
1108
1108
1109
1109
/** @noinspection SqlResolve */
1110
- $ sql = "SELECT *, borrowernumber, cardnumber, surname, firstname, streetnumber, streettype, address, address2, city, state, zipcode, country, email, phone, mobile, categorycode, dateexpiry, password, userid, branchcode, opacnote, privacy from borrowers where borrowernumber = ' " . mysqli_escape_string ($ this ->dbConnection , $ patronId ) . "'; " ;
1110
+ $ sql = "SELECT *, borrowernumber, cardnumber, surname, firstname, streetnumber, streettype, address, address2, city, state, zipcode, country, email, phone, mobile, categorycode, dateexpiry, password, userid, branchcode, opacnote, privacy, dateofbirth from borrowers where borrowernumber = ' " . mysqli_escape_string ($ this ->dbConnection , $ patronId ) . "'; " ;
1111
1111
1112
1112
$ userExistsInDB = false ;
1113
1113
$ lookupUserResult = mysqli_query ($ this ->dbConnection , $ sql , MYSQLI_USE_RESULT );
@@ -1236,6 +1236,8 @@ private function loadPatronInfoFromDB($patronId, $password, $suppliedUsernameOrB
1236
1236
$ user ->_state = $ userFromDb ['state ' ];
1237
1237
$ user ->_zip = $ userFromDb ['zipcode ' ];
1238
1238
$ user ->phone = $ userFromDb ['phone ' ];
1239
+ $ user ->_dateOfBirth = $ userFromDb ['dateofbirth ' ];
1240
+
1239
1241
1240
1242
$ user ->_web_note = $ userFromDb ['opacnote ' ];
1241
1243
@@ -1340,7 +1342,7 @@ private function loadPatronInfoFromDB($patronId, $password, $suppliedUsernameOrB
1340
1342
1341
1343
function loadContactInformation (User $ user ) {
1342
1344
$ this ->initDatabaseConnection ();
1343
- $ sql = "SELECT borrowernumber, cardnumber, surname, firstname, streetnumber, streettype, address, address2, city, state, zipcode, country, email, phone, mobile, categorycode, dateexpiry, password, userid, branchcode, opacnote, privacy from borrowers where borrowernumber = ' " . mysqli_escape_string ($ this ->dbConnection , $ user ->unique_ils_id ) . "'; " ;
1345
+ $ sql = "SELECT borrowernumber, cardnumber, surname, firstname, streetnumber, streettype, address, address2, city, state, zipcode, country, email, phone, mobile, categorycode, dateexpiry, password, userid, branchcode, opacnote, privacy, dateofbirth from borrowers where borrowernumber = ' " . mysqli_escape_string ($ this ->dbConnection , $ user ->unique_ils_id ) . "'; " ;
1344
1346
1345
1347
$ lookupUserResult = mysqli_query ($ this ->dbConnection , $ sql , MYSQLI_USE_RESULT );
1346
1348
if ($ lookupUserResult ) {
@@ -1357,6 +1359,7 @@ function loadContactInformation(User $user) {
1357
1359
$ user ->_state = $ userFromDb ['state ' ];
1358
1360
$ user ->_zip = $ userFromDb ['zipcode ' ];
1359
1361
$ user ->phone = $ userFromDb ['phone ' ];
1362
+ $ user ->_dateOfBirth = $ userFromDb ['dateofbirth ' ];
1360
1363
}
1361
1364
}
1362
1365
0 commit comments