prepared new version number

This commit is contained in:
malle-pietje
2024-11-24 11:58:49 +01:00
parent 9726378e3c
commit 97510ec5ec

View File

@@ -20,7 +20,7 @@ namespace UniFi_API;
class Client class Client
{ {
/** Constants. */ /** Constants. */
const CLASS_VERSION = '1.1.101'; const CLASS_VERSION = '1.1.102';
const CURL_METHODS_ALLOWED = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH']; const CURL_METHODS_ALLOWED = ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'];
const DEFAULT_CURL_METHOD = 'GET'; const DEFAULT_CURL_METHOD = 'GET';
@@ -121,12 +121,12 @@ class Client
*/ */
public function __destruct() public function __destruct()
{ {
/** if $_SESSION[$this->unificookie_name] is set, do not log out here */ /** If $_SESSION[$this->unificookie_name] is set, do not log out here. */
if (isset($_SESSION[$this->unificookie_name])) { if (isset($_SESSION[$this->unificookie_name])) {
return; return;
} }
/** log out, if needed */ /** Log out, if needed. */
if ($this->is_logged_in) { if ($this->is_logged_in) {
$this->logout(); $this->logout();
} }