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)) {