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/SyncToUser.php |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/inc/integrations/SyncToUser.php b/inc/integrations/SyncToUser.php
index ea8a0ec..f3400ee 100644
--- a/inc/integrations/SyncToUser.php
+++ b/inc/integrations/SyncToUser.php
@@ -36,6 +36,9 @@
 	}
 	protected function handleUpdateUser(int $userID):void
 	{
+		if (!$this->isSetUp()) {
+			return;
+		}
 		if (isset(self::$syncing['users'][$userID])) {
 			return;
 		}
@@ -142,6 +145,9 @@
 	 */
 	protected function handleTheSaveUser(int $userID):void
 	{
+		if (!$this->isSetUp()) {
+			return;
+		}
 		error_log('==== ['.$this->title.']::handleTheSaveUser ====');
 		//TODO: This is likely only for stuff like customers.
 		//If we have multiple stores connected, we may have to queue operations to update every connection's customer account if they made an order with that store

--
Gitblit v1.10.0