Fixed how check for webhooks dates

This commit is contained in:
Claudio Sanches 2017-11-10 12:34:25 -02:00
parent 6553a71586
commit 30fe4f5ab3
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<table class="form-table"> <table class="form-table">
<tbody> <tbody>
<?php if ( $webhook->get_date_created() && '0000-00-00 00:00:00' !== $webhook->get_date_created()->date( 'Y-m-d H:i:s' ) ) : ?> <?php if ( $webhook->get_date_created() && '0000-00-00 00:00:00' !== $webhook->get_date_created()->date( 'Y-m-d H:i:s' ) ) : ?>
<?php if ( 0 > $webhook->get_date_modified()->date( 'U' ) ) : ?> <?php if ( $webhook->get_date_created() ) : ?>
<tr valign="top"> <tr valign="top">
<th scope="row" class="titledesc"> <th scope="row" class="titledesc">
<?php esc_html_e( 'Created at', 'woocommerce' ); ?> <?php esc_html_e( 'Created at', 'woocommerce' ); ?>