From e3b0fc9747b1d17f3c5493fff80de30d97ef60c6 Mon Sep 17 00:00:00 2001 From: Quentin Lim <96753780+QL2111@users.noreply.github.com> Date: Tue, 2 Dec 2025 14:46:52 +0100 Subject: [PATCH 1/2] Fix typo: "arrya" to "array" causing syntax error. Hello, I encountered a PHP fatal error while trying to use the XML-RPC API. Error found in logs: `PHP Parse error: syntax error, unexpected '$this' (T_VARIABLE) in /var/www/html/lib/api/xmlrpc/v1/xmlrpc.class.php on line 3557` -> changed "arrya" to "array" After the change, my API call correctly work. Best Regards --- lib/api/xmlrpc/v1/xmlrpc.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api/xmlrpc/v1/xmlrpc.class.php b/lib/api/xmlrpc/v1/xmlrpc.class.php index 0b07e4d99b..22215998e9 100644 --- a/lib/api/xmlrpc/v1/xmlrpc.class.php +++ b/lib/api/xmlrpc/v1/xmlrpc.class.php @@ -3554,7 +3554,7 @@ public function addTestCaseToTestPlan($args) { $opt = array( 'outputFormat' => 'mapAccessByID' ); - $platformSet = (arrya)$this->tplanMgr->getPlatforms( $tplan_id, $opt ); + $platformSet = (array)$this->tplanMgr->getPlatforms( $tplan_id, $opt ); $hasPlatforms = (count( $platformSet ) > 0); $hasPlatformIDArgs = $this->_isParamPresent( self::$platformIDParamName ); @@ -9201,3 +9201,4 @@ function initMethodYellowPages() { ); } } // class end + From b9d02ffacc7a3e3b3d736ae9a91fd89067f9be55 Mon Sep 17 00:00:00 2001 From: Quentin Lim <96753780+QL2111@users.noreply.github.com> Date: Tue, 2 Dec 2025 15:03:23 +0100 Subject: [PATCH 2/2] Remove trailing whitespace --- lib/api/xmlrpc/v1/xmlrpc.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/api/xmlrpc/v1/xmlrpc.class.php b/lib/api/xmlrpc/v1/xmlrpc.class.php index 22215998e9..0e899accc2 100644 --- a/lib/api/xmlrpc/v1/xmlrpc.class.php +++ b/lib/api/xmlrpc/v1/xmlrpc.class.php @@ -9201,4 +9201,3 @@ function initMethodYellowPages() { ); } } // class end -