is_signed_in()) {
trigger_error('You must be signed in to create a thread.');
exit();
@@ -44,6 +45,7 @@ if (!Session::get()->is_signed_in()) {
Date: Thu, 13 May 2021 22:27:06 -0600
Subject: Disallow empty post content when creating threads
---
create_thread.php | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
(limited to 'create_thread.php')
diff --git a/create_thread.php b/create_thread.php
index a203b39..976bd9f 100644
--- a/create_thread.php
+++ b/create_thread.php
@@ -27,7 +27,7 @@ if (!Session::get()->is_signed_in()) {
$categories = get_all_categories();
if (count($categories) == 0) {
- echo 'There are no categories to post to!';
+ trigger_error('There are no categories to post to!');
} else {
echo '