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/clients.php | |
parent | Removed error reporting (diff) |
Class names start with a capital
Diffstat (limited to 'include/clients.php')
-rw-r--r-- | include/clients.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clients.php b/include/clients.php index f762859..1e7110b 100644 --- a/include/clients.php +++ b/include/clients.php @@ -45,8 +45,8 @@ require('./header.php'); if (isset($_GET['id'])) { $id = (int) $_GET['id']; try { - $client = new client($_pdo, $id); - $header = "<a href='".constants::url_external."clients'>Clients</a> / {$client->name}"; + $client = new Client($_pdo, $id); + $header = "<a href='".Constants::url_external."clients'>Clients</a> / {$client->name}"; $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 client 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 { - $client = new client($_pdo, $id); + $client = new Client($_pdo, $id); if ($client->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 client with name <i>{$client->name}</i> has been removed.</div>"; } else { |