|
@@ 557-563 (lines=7) @@
|
| 554 |
|
|
| 555 |
|
if ( is_array( $args['date'] ) ) { |
| 556 |
|
|
| 557 |
|
if ( ! empty( $args['date']['start'] ) ) { |
| 558 |
|
|
| 559 |
|
$start = date( 'Y-m-d H:i:s', strtotime( $args['date']['start'] ) ); |
| 560 |
|
|
| 561 |
|
$where .= " AND `date_created` >= '{$start}'"; |
| 562 |
|
|
| 563 |
|
} |
| 564 |
|
|
| 565 |
|
if ( ! empty( $args['date']['end'] ) ) { |
| 566 |
|
|
|
@@ 565-571 (lines=7) @@
|
| 562 |
|
|
| 563 |
|
} |
| 564 |
|
|
| 565 |
|
if ( ! empty( $args['date']['end'] ) ) { |
| 566 |
|
|
| 567 |
|
$end = date( 'Y-m-d H:i:s', strtotime( $args['date']['end'] ) ); |
| 568 |
|
|
| 569 |
|
$where .= " AND `date_created` <= '{$end}'"; |
| 570 |
|
|
| 571 |
|
} |
| 572 |
|
|
| 573 |
|
} else { |
| 574 |
|
|