From 212e2b28f4216150047a6d17f6ceee876836abea Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 23 Apr 2026 16:47:45 +0200 Subject: [PATCH] Fi warning --- test/phpunit/AbstractRestAPITest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/phpunit/AbstractRestAPITest.php b/test/phpunit/AbstractRestAPITest.php index 923ebb671ba..0218e62cc4d 100644 --- a/test/phpunit/AbstractRestAPITest.php +++ b/test/phpunit/AbstractRestAPITest.php @@ -101,7 +101,7 @@ abstract class AbstractRestAPITest extends CommonClassTest $this->assertNotEquals(500, (empty($object['error']['code']) ? 0 : $object['error']['code']), "$test Error".(empty($object['error']['message']) ? '' : ' '.$object['error']['message'])); $this->assertEquals('200', $object['success']['code']); - $this->api_key = $object['success']['token']; + $this->api_key = isset($object['success']['token']) ? $object['success']['token'] : null; print "$method api_key: $this->api_key \n"; }