1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 08:53:23 -05:00

Closes #13 by removing unncessary logic check.

* Hopefully, no reason for checking for new account.
This commit is contained in:
Jonathan Rosenbaum 2017-11-01 08:03:06 +00:00
parent 8396b66a76
commit 1f38eb1f9a

View File

@ -11,7 +11,7 @@ $ssl_certificate = SSL_CERTIFICATE;
// test whether patron's name already exists
if (isset($_POST['test_name'])) {
if( $_POST['contact_id'] === "new_contact" && $_POST['first_name'] && $_POST['last_name'] ) {
if( $_POST['first_name'] && $_POST['last_name'] ) {
$query = 'SELECT first_name, middle_initial, last_name FROM contacts WHERE ' .
'first_name="' . $_POST['first_name'] . '" AND middle_initial="' . $_POST['middle_initial'] .
'" AND last_name="' . $_POST['last_name'] . '";';