| @@ 376-378 (lines=3) @@ | ||
| 373 | ||
| 374 | // Respect api formats |
|
| 375 | if (!empty($params['begin'])) { |
|
| 376 | if (!is_int($params['begin'])) { |
|
| 377 | $params['begin'] = strtotime(str_replace('/', '-', $params['begin'])); |
|
| 378 | } |
|
| 379 | // Need an end date, default to now |
|
| 380 | if (empty($params['end'])) { |
|
| 381 | $params['end'] = time(); |
|
| @@ 384-388 (lines=5) @@ | ||
| 381 | $params['end'] = time(); |
|
| 382 | } |
|
| 383 | } |
|
| 384 | if (!empty($params['end'])) { |
|
| 385 | if (!is_int($params['end'])) { |
|
| 386 | $params['end'] = strtotime(str_replace('/', '-', $params['end'])); |
|
| 387 | } |
|
| 388 | } |
|
| 389 | ||
| 390 | ||
| 391 | $params = array_filter($params); |
|