From d0dcf781bd53181481e55393c67fd0528fc85a5f Mon Sep 17 00:00:00 2001 From: Clint Broadhead <10893868+the-clint@users.noreply.github.com> Date: Mon, 3 Nov 2025 09:16:38 -0700 Subject: [PATCH] fix: assume euOnly property always exists A recent api change to /user made it so the 'euOnly' property was always set, but set to 0 if it wasn't enabled. --- JotForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JotForm.php b/JotForm.php index 9753ffd..57b4546 100644 --- a/JotForm.php +++ b/JotForm.php @@ -23,7 +23,7 @@ public function __construct($apiKey = '', $outputType = 'json', $debugMode = fal $this->outputType = strtolower($outputType); $user = $this->getUser(); # set base url for EU users - if (isset($user['euOnly'])) { + if (isset($user['euOnly']) && !empty($user['euOnly'])) { $this->baseURL = 'https://eu-api.jotform.com'; } }