GenericTable: better handling of null values for timestamps

This commit is contained in:
Aaron committed 2025-05-16 11:54:05 +02:00
1 parent 219260c57f
commit 3dfda45681
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -226,8 +226,8 @@ class GenericTable
else
$pattern = $options['pattern'];
assert(isset($rowData[$options['value']]));
if (!is_numeric($rowData[$options['value']]))
assert(array_key_exists($options['value'], $rowData));
if (isset($rowData[$options['value']]) && !is_numeric($rowData[$options['value']]))
$timestamp = strtotime($rowData[$options['value']]);
else
$timestamp = (int) $rowData[$options['value']];