mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-05 01:01:30 +02:00
More PgSql fixes
This commit is contained in:
parent
9db59109f7
commit
8aa16110d5
2 changed files with 8 additions and 8 deletions
|
@ -438,8 +438,8 @@ function handleDomainQuery($request, $response, $pdo, $domainName, $c, $log) {
|
|||
];
|
||||
|
||||
// Check if domain last update is set and not empty
|
||||
if (isset($domainDetails['update']) && !empty($domainDetails['update'])) {
|
||||
$updateDateTime = new DateTime($domainDetails['update']);
|
||||
if (isset($domainDetails['lastupdate']) && !empty($domainDetails['lastupdate'])) {
|
||||
$updateDateTime = new DateTime($domainDetails['lastupdate']);
|
||||
$events[] = [
|
||||
'eventAction' => 'last domain update',
|
||||
'eventDate' => $updateDateTime->format('Y-m-d\TH:i:s.v\Z')
|
||||
|
@ -1668,8 +1668,8 @@ function handleDomainSearchQuery($request, $response, $pdo, $searchPattern, $c,
|
|||
];
|
||||
|
||||
// Check if domain last update is set and not empty
|
||||
if (isset($domainDetails['update']) && !empty($domainDetails['update'])) {
|
||||
$updateDateTime = new DateTime($domainDetails['update']);
|
||||
if (isset($domainDetails['lastupdate']) && !empty($domainDetails['lastupdate'])) {
|
||||
$updateDateTime = new DateTime($domainDetails['lastupdate']);
|
||||
$events[] = [
|
||||
'eventAction' => 'last domain update',
|
||||
'eventDate' => $updateDateTime->format('Y-m-d\TH:i:s.v\Z')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue