Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 7 additions & 2 deletions src/Api/Operator/Webspace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}
}

Expand Down