diff options
author | Camil Staps | 2016-07-27 16:48:53 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-27 17:08:12 +0200 |
commit | 21455bfd1004c4a3153050ac5995b8dc680c2042 (patch) | |
tree | b448f9d94cd9b6addb6d6b391001c418243cc13d /include/contacts.php | |
parent | Removed error reporting (diff) |
Class names start with a capital
Diffstat (limited to 'include/contacts.php')
-rw-r--r-- | include/contacts.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/contacts.php b/include/contacts.php index 09a452f..1231e24 100644 --- a/include/contacts.php +++ b/include/contacts.php @@ -45,8 +45,8 @@ require('./header.php'); if (isset($_GET['id'])) { $id = (int) $_GET['id']; try { - $contact = new contact($_pdo, $id); - $header = "<a href='".constants::url_external."contacts'>Contacts</a> / {$contact->getName()}"; + $contact = new Contact($_pdo, $id); + $header = "<a href='".Constants::url_external."contacts'>Contacts</a> / {$contact->getName()}"; $show_individual = $id; } catch (PDOException $e) { $alert = "<div class='alert alert-danger alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The contact with id $id</i> could not be found.</div>"; @@ -64,7 +64,7 @@ require('./header.php'); echo "<div class='col-lg-12'>"; $id = (int) $_GET['delete']; try { - $contact = new contact($_pdo, $id); + $contact = new Contact($_pdo, $id); if ($contact->delete()) { echo "<div class='alert alert-success alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The contact with name <i>{$contact->getName()}</i> has been removed.</div>"; } else { |