We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88edfad commit af175f3Copy full SHA for af175f3
src/classes/Tools/Hosts/AddHosts.php
@@ -61,7 +61,7 @@ public function add($userId, array $hostsDetails)
61
$hostName,
62
$hostsDetail["trustPassword"], // Might end with whitepsace
63
$socketPath,
64
- $hostsDetail["token"] !== null ? trim($hostsDetail["token"]) : null // b64 shouldn't have whitespace
+ !empty($hostsDetail["token"]) ? trim($hostsDetail["token"]) : null // b64 shouldn't have whitespace
65
);
66
67
$alias = null;
0 commit comments