Skip to content

Commit c632066

Browse files
committed
Correct example code
1 parent 33014e3 commit c632066

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

remoting_client/examples/domains_domain_update.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
'domain' => 'cellar.door'
2222
);
2323

24-
$domain_id = $client->domains_domain_update($session_id, $client_id, $primary_id, $params);
24+
$result = $client->domains_domain_update($session_id, $client_id, $primary_id, $params);
2525

26-
echo "Domain ID: ".$domain_id."<br>";
27-
28-
if($client->logout($session_id)) {
26+
if ($result) {
27+
echo 'Domain updated.<br />';
28+
}
29+
if ($client->logout($session_id)) {
2930
echo 'Logged out.<br />';
3031
}
3132

0 commit comments

Comments
 (0)