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/discounts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/discounts.php') diff --git a/include/discounts.php b/include/discounts.php index ff2a69a..a4d9df6 100644 --- a/include/discounts.php +++ b/include/discounts.php @@ -45,8 +45,8 @@ require('./header.php'); if (isset($_GET['id'])) { $id = (int) $_GET['id']; try { - $discount = new discount($_pdo, $id); - $header = "Discounts / {$discount->getTitle()}"; + $discount = new Discount($_pdo, $id); + $header = "Discounts / {$discount->getTitle()}"; $show_individual = $id; } catch (PDOException $e) { $alert = "
The discount with id $id could not be found.
"; @@ -64,7 +64,7 @@ require('./header.php'); echo "
"; $id = (int) $_GET['delete']; try { - $discount = new discount($_pdo, $id); + $discount = new Discount($_pdo, $id); if ($discount->delete()) { echo "
The discount with title {$discount->getTitle()} has been removed.
"; } else { -- cgit v1.2.3