aboutsummaryrefslogtreecommitdiff
path: root/include/assignments.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/assignments.php')
-rw-r--r--include/assignments.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/assignments.php b/include/assignments.php
index 7c3c79d..32e0c20 100644
--- a/include/assignments.php
+++ b/include/assignments.php
@@ -46,7 +46,7 @@ require('./header.php');
$id = (int) $_GET['id'];
try {
$assignment = new Assignment($_pdo, $id);
- $header = "<a href='".Constants::url_external."assignments'>Assignments</a> / {$assignment->getTitle()}";
+ $header = "<a href='".Constants::url_external."assignments'>Assignments</a> / {$assignment->title}";
$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 assignment with id $id</i> could not be found.</div>";
@@ -66,9 +66,9 @@ require('./header.php');
try {
$assignment = new Assignment($_pdo, $id);
if ($assignment->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 assignment with title <i>{$assignment->getTitle()}</i> has been removed.</div>";
+ echo "<div class='alert alert-success alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment with title <i>{$assignment->title}</i> has been removed.</div>";
} else {
- echo "<div class='alert alert-warning alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment with title <i>{$assignment->getTitle()}</i> could not be removed. Perhaps it's already removed?</div>";
+ echo "<div class='alert alert-warning alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment with title <i>{$assignment->title}</i> could not be removed. Perhaps it's already removed?</div>";
}
} catch (PDOException $e) {
echo "<div class='alert alert-danger alert-dismissable'><button type='button' class='close fa fa-times' data-dismiss='alert' aria-hidden='true'></button>The assignment could not be removed due to a PDO error.</div>";