Fixed how read empty dates while reading webhooks from database
This commit is contained in:
parent
f60b814dd4
commit
6553a71586
|
@ -88,8 +88,8 @@ class WC_Webhook_Data_Store implements WC_Webhook_Data_Store_Interface {
|
|||
'delivery_url' => $data['delivery_url'],
|
||||
'secret' => $data['secret'],
|
||||
'topic' => $data['topic'],
|
||||
'date_created' => $data['date_created'],
|
||||
'date_modified' => $data['date_modified'],
|
||||
'date_created' => '0000-00-00 00:00:00' === $data['date_created'] ? null : $data['date_created'],
|
||||
'date_modified' => '0000-00-00 00:00:00' === $data['date_modified'] ? null : $data['date_modified'],
|
||||
'api_version' => $data['api_version'],
|
||||
'failure_count' => $data['failure_count'],
|
||||
'pending_delivery' => $data['pending_delivery'],
|
||||
|
|
Loading…
Reference in New Issue