Skip to content

Commit

Permalink
change: Remove isset condition from date formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
zaqmughal-ll committed Jun 9, 2023
1 parent 0614a1a commit 8ee1981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/FeUsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function renderAjax(ServerRequestInterface $request): Response

// Format unix timestamp fields
foreach ($this->dateColumns as $dateColumn) {
$row[$dateColumn] = isset($row[$dateColumn]) ? date('d/m/Y H:i:s', $row[$dateColumn]) : 'N/A';
$row[$dateColumn] = $row[$dateColumn] ? date('d/m/Y H:i:s', $row[$dateColumn]) : 'N/A';
}

$data[] = array_values($row);
Expand Down

0 comments on commit 8ee1981

Please sign in to comment.