Formatting fixes on domain and host create

This commit is contained in:
Pinga 2024-01-24 10:48:35 +02:00
parent 1f000d5cf9
commit cfcb51b9f8
2 changed files with 3 additions and 3 deletions

View file

@ -485,7 +485,7 @@ class DomainsController extends Controller
$exdate = $currentDateTime->format('Y-m-d H:i:s.v'); // Expiry timestamp after $date_add months $exdate = $currentDateTime->format('Y-m-d H:i:s.v'); // Expiry timestamp after $date_add months
$db->insert('domain', [ $db->insert('domain', [
'name' => $domainName, 'name' => strtolower($domainName),
'tldid' => $tld_id, 'tldid' => $tld_id,
'registrant' => $registrant_id, 'registrant' => $registrant_id,
'crdate' => $crdate, 'crdate' => $crdate,

View file

@ -128,7 +128,7 @@ class HostsController extends Controller
$db->insert( $db->insert(
'host', 'host',
[ [
'name' => $hostName, 'name' => strtolower($hostName),
'domain_id' => $superordinate_dom, 'domain_id' => $superordinate_dom,
'clid' => $clid, 'clid' => $clid,
'crid' => $clid, 'crid' => $clid,
@ -195,7 +195,7 @@ class HostsController extends Controller
$db->insert( $db->insert(
'host', 'host',
[ [
'name' => $hostName, 'name' => strtolower($hostName),
'clid' => $clid, 'clid' => $clid,
'crid' => $clid, 'crid' => $clid,
'crdate' => $crdate 'crdate' => $crdate