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