From cc486f652df36c34c725f095537d877e68fbec62 Mon Sep 17 00:00:00 2001 From: malle-pietje Date: Fri, 6 Oct 2017 12:55:44 +0200 Subject: [PATCH] fixed typo in examples/change_wlan_password.php --- examples/change_wlan_password.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/change_wlan_password.php b/examples/change_wlan_password.php index 40ee269..ff11833 100755 --- a/examples/change_wlan_password.php +++ b/examples/change_wlan_password.php @@ -37,9 +37,10 @@ */ $unifi_connection = new UniFi_API\Client($controlleruser, $controllerpassword, $controllerurl, $site_id, $controllerversion); $set_debug_mode = $unifi_connection->set_debug($debug); -$loginresults = $unifi_connection->set_wlansettings($wlan_id, $new_password); +$loginresults = $unifi_connection->login(); +$results = $unifi_connection->set_wlansettings($wlan_id, $new_password); /** * provide feedback in json format */ -echo json_encode($loginresults, JSON_PRETTY_PRINT); +echo json_encode($results, JSON_PRETTY_PRINT);