diff --git a/src/Controller/BindAPI.php b/src/Controller/BindAPI.php index ec6d1ce..c9e9efa 100755 --- a/src/Controller/BindAPI.php +++ b/src/Controller/BindAPI.php @@ -445,7 +445,7 @@ class BindAPI echo COLOR_RED . ' ' . $result['header'] . COLOR_DEFAULT; $arguments = $this->parseArguments(); if (!empty($arguments['fix']) && $arguments['fix'] == 'yes') { - echo 'trying to fix …'; + echo ' trying to fix …'; $body = [ 'name' => $domainName, 'panel' => $panel->getName(), @@ -474,9 +474,10 @@ class BindAPI echo $e->getMessage(); exit(1); } - print_r(value: $create); - if ($create['header'] != 200) { + if ($create['header'] != 201) { die("make error handling"); + } else { + echo COLOR_GREEN . 'OK'; } } break;