From 7935d26cd16a4f8f69a59a44e27a7263b60e54bf Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Mon, 14 Sep 2026 19:05:30 +0000
Subject: [PATCH] =Simple Calendar block up and running

---
 inc/integrations/SyncToTerm.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/inc/integrations/SyncToTerm.php b/inc/integrations/SyncToTerm.php
index 2056579..02f7805 100644
--- a/inc/integrations/SyncToTerm.php
+++ b/inc/integrations/SyncToTerm.php
@@ -73,6 +73,9 @@
 	 */
 	protected function handleTheSaveTerm(int $termID, bool $update, string $taxonomy, array $settings):void
 	{
+		if (!$this->isSetUp()) {
+			return;
+		}
 		error_log('==== ['.$this->title.']::handleTheSaveTerm ====');
 		//TODO: Figure out some sort of permissions for if the user can share this term, particularly for content types
 		//TODO: If this is a content type, it likely has its own integration. This is an edmonton.ink problem, so I'm offloading it for now
@@ -98,6 +101,9 @@
 	}
 	public function handleDeleteTerm(int $termID, string $taxonomy):void
 	{
+		if (!$this->isSetUp()) {
+			return;
+		}
 		if (!$this->canSync['delete']) {
 			return;
 		}

--
Gitblit v1.10.0