summaryrefslogtreecommitdiff
path: root/model/Thread.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-03-25 19:57:42 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-03-25 19:57:42 -0600
commitd4a657334d4100c29a700d21e05b5e7fef8fce64 (patch)
tree031508ff1ab34820dceceb7ae2a7e772db6fbf5e /model/Thread.php
parent0ecae4e72d7d4ace51b731ff2c5d5eb63351e3e1 (diff)
Create 404 page for invalid ids
Diffstat (limited to 'model/Thread.php')
-rw-r--r--model/Thread.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/model/Thread.php b/model/Thread.php
index 20c6c0a..aa48cfd 100644
--- a/model/Thread.php
+++ b/model/Thread.php
@@ -21,7 +21,7 @@ class Thread {
}
if (mysqli_num_rows($result) == 0) {
-
+ return 0;
} else {
while ($row = mysqli_fetch_assoc($result)) {
$this->id = $id;
@@ -38,6 +38,7 @@ class Thread {
}
mysqli_free_result($result);
+ return 1;
}
function get_posts($dbc) {