From c16a4d78d07e81ecdd2ff9b1b9090560ab2fe488 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 04 Sep 2026 22:25:09 +0000
Subject: [PATCH] =Got the panel loading up the fields, organized by section! Now to ensure it saves properly. Still need to add: upload fields, selector fields, repeater/taglist/group fields
---
inc/integrations/UserConnection.php | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/inc/integrations/UserConnection.php b/inc/integrations/UserConnection.php
index 5202e6e..5185319 100644
--- a/inc/integrations/UserConnection.php
+++ b/inc/integrations/UserConnection.php
@@ -19,7 +19,7 @@
}
public function switchUser(?int $userID = null):bool
{
- if (!$this->userCanConnect($userID)) {
+ if (!is_null($userID) && !$this->userCanConnect($userID)) {
return false;
}
$this->clearUser();
@@ -37,7 +37,6 @@
protected function clearUser():void
{
$this->userID = false;
- $this->credentials = [];
if (property_exists($this, 'rateLimiter')) {
$this->requestLimiter?->saveHistory();
$this->requestLimiter = null;
--
Gitblit v1.10.0