From d61a18a93bc1b39d91725497ebb2fe85c4785ead Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Wed, 7 Apr 2021 11:44:11 -0600 Subject: Update links, rename files --- index.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index dcad956..e27a155 100644 --- a/index.php +++ b/index.php @@ -42,16 +42,20 @@ echo ''; echo ''; - echo '' . $category->name . ''; + echo '' . $category->name . ''; echo '
' . $category->description; echo ''; echo '' . $category->thread_count . ''; echo '' . $category->post_count . ''; - echo '' . $latest_thread->subject . '
'; - echo 'by ' . $latest_thread->author->name . ', ' . $latest_thread->date_created . ''; + if (!is_null($latest_thread)) { + echo '' . $latest_thread->subject . '
'; + echo 'by ' . $latest_thread->author->name . ', ' . $latest_thread->date_created . ''; + } else { + echo 'No threads yet!'; + } echo ''; } ?> - \ No newline at end of file + -- cgit v1.2.3