Skip to content

Commit 14f4d58

Browse files
committed
minor bugs removed from two examples
1 parent 77972aa commit 14f4d58

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/create_site.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@
3535
$results = $unifi_connection->create_site($description);
3636

3737
/**
38-
* provide feedback (the newly created vouchers) in json format
38+
* provide feedback in json format
3939
*/
40-
echo json_encode($vouchers, JSON_PRETTY_PRINT);
40+
echo json_encode($results, JSON_PRETTY_PRINT);

examples/delete_site.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
/**
27-
* the site to delete, may not be the same site as referenced by $site_id
27+
* the site to delete, must not be the same site as referenced by $site_id
2828
*/
2929
$site_to_delete = '<_id value of the site>';
3030

@@ -36,6 +36,6 @@
3636
$results = $unifi_connection->delete_site($site_to_delete);
3737

3838
/**
39-
* provide feedback (the newly created vouchers) in json format
39+
* provide feedback in json format
4040
*/
41-
echo json_encode($vouchers, JSON_PRETTY_PRINT);
41+
echo json_encode($results, JSON_PRETTY_PRINT);

0 commit comments

Comments
 (0)