From 24efe49bc2b545e3a3e46d7d6f2bd1166163e52b Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Sat, 5 Jun 2021 11:18:10 -0600 Subject: Move object related functions into their classes. Some of the pages are still broken from this commit, but I plan to either rewrite or ignore them. --- index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 9d62f52..dadef39 100644 --- a/index.php +++ b/index.php @@ -27,10 +27,9 @@ Latest Thread get_latest_thread(); @@ -42,7 +41,7 @@ echo ''; echo '' . $category->thread_count . ''; echo '' . $category->post_count . ''; - if (!is_null($latest_thread)) { + if ($latest_thread->has_value()) { echo '' . $latest_thread->subject . '
'; echo 'by ' . $latest_thread->author->name . ', ' . $latest_thread->date_created . ''; } else { -- cgit v1.2.3