From 4b127dfd656e3fdc826f9b992afeca902025a6a0 Mon Sep 17 00:00:00 2001 From: Fabrizio Balliano Date: Fri, 1 Mar 2024 11:26:15 +0000 Subject: [PATCH] Removed unused variables from Mage_Api_Model_Server_Handler_Abstract --- app/code/core/Mage/Api/Model/Server/Handler/Abstract.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php b/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php index 5ad0ad18ad8..4e9bcc0303d 100644 --- a/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php +++ b/app/code/core/Mage/Api/Model/Server/Handler/Abstract.php @@ -285,7 +285,6 @@ public function call($sessionId, $apiPath, $args = []) } if (method_exists($model, $method)) { - $result = []; if (isset($methodInfo->arguments) && ((string)$methodInfo->arguments) == 'array') { $result = $model->$method((is_array($args) ? $args : [$args])); } elseif (!is_array($args)) { @@ -403,7 +402,6 @@ public function multiCall($sessionId, array $calls = [], $options = []) } if (method_exists($model, $method)) { - $callResult = []; if (isset($methodInfo->arguments) && ((string)$methodInfo->arguments) == 'array') { $callResult = $model->$method((is_array($args) ? $args : [$args])); } elseif (!is_array($args)) {