diff --git a/composer.json b/composer.json index 9e5857eb..00b5e8fb 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "plesk/api-php-lib", + "name": "puhhosting/plesk-api-php-lib", "type": "library", "description": "PHP object-oriented library for Plesk XML-RPC API", "license": "Apache-2.0", diff --git a/src/Api/Operator/Webspace.php b/src/Api/Operator/Webspace.php index b530b55b..1654968b 100644 --- a/src/Api/Operator/Webspace.php +++ b/src/Api/Operator/Webspace.php @@ -84,9 +84,14 @@ public function create(array $properties, array $hostingProperties = null, $plan $property->addChild('name', $name); $property->addChild('value', $value); } - if (isset($properties['ip_address'])) { - $infoHosting->addChild('ip_address', $properties['ip_address']); + if (is_array($properties['ip_address'])) { + foreach ($properties['ip_address'] as $value) { + $infoHosting->addChild("ip_address", $value); + } + } else { + $infoHosting->addChild("ip_address", $properties['ip_address']); + } } }