forked from Public/pics
GenericTable: prevent passing NULL to strtotime
This commit is contained in:
parent
8414843bbf
commit
187a7cd02f
@ -234,7 +234,9 @@ class GenericTable
|
||||
else
|
||||
$pattern = $options['data']['pattern'];
|
||||
|
||||
if (!is_numeric($rowData[$options['data']['timestamp']]))
|
||||
if (!isset($rowData[$options['data']['timestamp']]))
|
||||
$timestamp = 0;
|
||||
elseif (!is_numeric($rowData[$options['data']['timestamp']]))
|
||||
$timestamp = strtotime($rowData[$options['data']['timestamp']]);
|
||||
else
|
||||
$timestamp = (int) $rowData[$options['data']['timestamp']];
|
||||
|
Loading…
Reference in New Issue
Block a user