From 2b03ca63d06ec5da45c887ef7cb3daa35a8642f7 Mon Sep 17 00:00:00 2001 From: h5p9sl <21267024+h5p9sl@users.noreply.github.com> 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(-) 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 '