1.3.1 #2

Merged
meteo merged 7 commits from 1.3.1 into main 2026-07-13 21:56:55 +00:00
Showing only changes of commit b94a3bdab7 - Show all commits

View File

@@ -59,6 +59,7 @@ class API_servers extends API
{ {
# if the server_state that is posted is 'deleted' check if the current server state is 'new' if so, delete it perm. # if the server_state that is posted is 'deleted' check if the current server state is 'new' if so, delete it perm.
if (isset($this->data['server_state'])) {
if ($this->data['server_state'] == 'deleted') { if ($this->data['server_state'] == 'deleted') {
$stmt = $GLOBALS['pdo']->prepare("SELECT server_state FROM servers WHERE server_vm_id = ? AND server_state = 'new'"); $stmt = $GLOBALS['pdo']->prepare("SELECT server_state FROM servers WHERE server_vm_id = ? AND server_state = 'new'");
$stmt->execute([$this->data['server_vm_id']]); $stmt->execute([$this->data['server_vm_id']]);
@@ -69,12 +70,12 @@ class API_servers extends API
return; return;
} }
} }
if (isset($this->data['company_uuid'])) { if (isset($this->data['company_uuid'])) {
if (strlen($this->data['company_uuid']) == 0) { if (strlen($this->data['company_uuid']) == 0) {
$this->data['company_uuid'] = NULL; $this->data['company_uuid'] = NULL;
} }
} }
}
$fields = [ $fields = [
'company_uuid', 'company_uuid',