From f94860aacd6200fb24c9e7431eb379a368cb392d Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 10 Jul 2026 00:35:44 +0000
Subject: [PATCH] =Refactored CredentialsManager.php to utilize a CustomTable instance instead

---
 inc/registrar/Registrar.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/inc/registrar/Registrar.php b/inc/registrar/Registrar.php
index 58590ba..b30b0cf 100644
--- a/inc/registrar/Registrar.php
+++ b/inc/registrar/Registrar.php
@@ -680,8 +680,8 @@
 	public static function withIntegration(string $integration, ?string $type = null):array
 	{
 		self::ensureInstanced();
-
-		if (!Site::has($integration)) {
+		Site::getInstance();
+		if (!Site::hasIntegration($integration)) {
 			error_log('[Registrar]::withIntegration Integration not available to fetch: '.$integration);
 			return [];
 		}
@@ -690,7 +690,7 @@
 			if (!is_null($type) && $inst->type !== $type) {
 				return false;
 			}
-			return array_key_exists($integration, $this->integrationConfigs);
+			return array_key_exists($integration, $inst->integrationConfigs);
 		}));
 	}
 

--
Gitblit v1.10.0