From 86c6cd3cc099d2480932ede03c12cea01e625c94 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 26 Apr 2026 21:56:28 +0000
Subject: [PATCH] =Requiring files based on Site class settings

---
 base/content.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/base/content.php b/base/content.php
index 15dd130..fb5f436 100644
--- a/base/content.php
+++ b/base/content.php
@@ -18,7 +18,7 @@
  *      - rewrites      = (array) key = associated taxonomy; value = what to append to rewrite base
  */
 $defaults = [];
-if (array_key_exists('has_support', JVB_SITE) && JVB_SITE['has_support'] === true) {
+if (!empty(JVB_SITE) && array_key_exists('has_support', JVB_SITE) && JVB_SITE['has_support'] === true) {
 	$defaults = array_merge($defaults, jvb_support_post_type());
 }
 $content = array_merge($defaults, apply_filters('jvb_content', []));

--
Gitblit v1.10.0