Skip to content

Commit af175f3

Browse files
committed
Fix issue with adding a host via socket and not token
1 parent 88edfad commit af175f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/Tools/Hosts/AddHosts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function add($userId, array $hostsDetails)
6161
$hostName,
6262
$hostsDetail["trustPassword"], // Might end with whitepsace
6363
$socketPath,
64-
$hostsDetail["token"] !== null ? trim($hostsDetail["token"]) : null // b64 shouldn't have whitespace
64+
!empty($hostsDetail["token"]) ? trim($hostsDetail["token"]) : null // b64 shouldn't have whitespace
6565
);
6666

6767
$alias = null;

0 commit comments

Comments
 (0)