mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
Closes #13 by removing unncessary logic check.
* Hopefully, no reason for checking for new account.
This commit is contained in:
+1
-1
@@ -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'] . '";';
|
||||
|
||||
Reference in New Issue
Block a user