|
@@ 367-370 (lines=4) @@
|
| 364 |
|
|
| 365 |
|
$conds = []; |
| 366 |
|
|
| 367 |
|
if ( isset( $options['start'] ) ) { |
| 368 |
|
$after = $options['dir'] === self::DIR_OLDER ? '<=' : '>='; |
| 369 |
|
$conds[] = 'rc_timestamp ' . $after . ' ' . $db->addQuotes( $options['start'] ); |
| 370 |
|
} |
| 371 |
|
if ( isset( $options['end'] ) ) { |
| 372 |
|
$before = $options['dir'] === self::DIR_OLDER ? '>=' : '<='; |
| 373 |
|
$conds[] = 'rc_timestamp ' . $before . ' ' . $db->addQuotes( $options['end'] ); |
|
@@ 371-374 (lines=4) @@
|
| 368 |
|
$after = $options['dir'] === self::DIR_OLDER ? '<=' : '>='; |
| 369 |
|
$conds[] = 'rc_timestamp ' . $after . ' ' . $db->addQuotes( $options['start'] ); |
| 370 |
|
} |
| 371 |
|
if ( isset( $options['end'] ) ) { |
| 372 |
|
$before = $options['dir'] === self::DIR_OLDER ? '>=' : '<='; |
| 373 |
|
$conds[] = 'rc_timestamp ' . $before . ' ' . $db->addQuotes( $options['end'] ); |
| 374 |
|
} |
| 375 |
|
|
| 376 |
|
return $conds; |
| 377 |
|
} |