Skip to content

Commit

Permalink
fix: transferLock wrong data type
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoederhuyzen committed Sep 28, 2023
1 parent 0633879 commit 0b96fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/registrars/inwx/inwx.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ function inwx_GetRegistrarLock(array $params)
$response = $domrobot->call('domain', 'info', inwx_InjectCredentials($params, $pDomain));

if ($response['code'] === 1000 && isset($response['resData']['transferLock'])) {
if ($response['resData']['transferLock'] === 1) {
if ($response['resData']['transferLock'] === true) {
$lockstatus = 'locked';
} elseif ($response['resData']['transferLock'] === 0) {
} elseif ($response['resData']['transferLock'] === false) {
$lockstatus = 'unlocked';
} else {
$lockstatus = '';
Expand Down

0 comments on commit 0b96fa1

Please sign in to comment.