mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-03 01:23:22 +02:00
Fixed host status not being added in one case
This commit is contained in:
parent
2ec5e9b6f5
commit
c5a3f7641e
1 changed files with 4 additions and 0 deletions
|
@ -539,6 +539,10 @@ function processHostCreate($conn, $db, $xml, $clid, $database_type, $trans) {
|
||||||
$stmt->execute([$hostName, $clid, $clid]);
|
$stmt->execute([$hostName, $clid, $clid]);
|
||||||
|
|
||||||
$host_id = $db->lastInsertId();
|
$host_id = $db->lastInsertId();
|
||||||
|
|
||||||
|
$host_status = 'ok';
|
||||||
|
$stmt = $db->prepare("INSERT INTO host_status (host_id,status) VALUES(?,?)");
|
||||||
|
$stmt->execute([$host_id, $host_status]);
|
||||||
|
|
||||||
$stmt = $db->prepare("SELECT crdate FROM host WHERE name = ? LIMIT 1");
|
$stmt = $db->prepare("SELECT crdate FROM host WHERE name = ? LIMIT 1");
|
||||||
$stmt->execute([$hostName]);
|
$stmt->execute([$hostName]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue