From 21455bfd1004c4a3153050ac5995b8dc680c2042 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 27 Jul 2016 16:48:53 +0200 Subject: Class names start with a capital --- include/contacts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/contacts.php') 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 = "Contacts / {$contact->getName()}"; + $contact = new Contact($_pdo, $id); + $header = "Contacts / {$contact->getName()}"; $show_individual = $id; } catch (PDOException $e) { $alert = "
The contact with id $id could not be found.
"; @@ -64,7 +64,7 @@ require('./header.php'); echo "
"; $id = (int) $_GET['delete']; try { - $contact = new contact($_pdo, $id); + $contact = new Contact($_pdo, $id); if ($contact->delete()) { echo "
The contact with name {$contact->getName()} has been removed.
"; } else { -- cgit v1.2.3