Browse Source

Closes #13 by removing unncessary logic check.

* Hopefully, no reason for checking for new account.
devel
Jonathan Rosenbaum 7 years ago
parent
commit
1f38eb1f9a
  1. 2
      json/contact.php

2
json/contact.php

@ -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'] . '";';

Loading…
Cancel
Save