From 14f4d58b0288998202c77da8a50f58a9889972f9 Mon Sep 17 00:00:00 2001 From: malle-pietje Date: Thu, 1 Feb 2018 17:11:05 +0100 Subject: [PATCH] minor bugs removed from two examples --- examples/create_site.php | 4 ++-- examples/delete_site.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/create_site.php b/examples/create_site.php index c7848c3..b2ba5d1 100755 --- a/examples/create_site.php +++ b/examples/create_site.php @@ -35,6 +35,6 @@ $loginresults = $unifi_connection->login(); $results = $unifi_connection->create_site($description); /** - * provide feedback (the newly created vouchers) in json format + * provide feedback in json format */ -echo json_encode($vouchers, JSON_PRETTY_PRINT); +echo json_encode($results, JSON_PRETTY_PRINT); diff --git a/examples/delete_site.php b/examples/delete_site.php index a086ffd..07df7a4 100755 --- a/examples/delete_site.php +++ b/examples/delete_site.php @@ -24,7 +24,7 @@ $site_id = ''; /** - * the site to delete, may not be the same site as referenced by $site_id + * the site to delete, must not be the same site as referenced by $site_id */ $site_to_delete = '<_id value of the site>'; @@ -36,6 +36,6 @@ $loginresults = $unifi_connection->login(); $results = $unifi_connection->delete_site($site_to_delete); /** - * provide feedback (the newly created vouchers) in json format + * provide feedback in json format */ -echo json_encode($vouchers, JSON_PRETTY_PRINT); +echo json_encode($results, JSON_PRETTY_PRINT);