Fixed how read empty dates while reading webhooks from database

This commit is contained in:
Claudio Sanches 2017-11-10 11:58:25 -02:00
parent f60b814dd4
commit 6553a71586
1 changed files with 2 additions and 2 deletions

View File

@ -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'],