mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Revert "Refactoring: Created constants for datetime values (#1648)"
This reverts commit 6eca29714a
.
This commit is contained in:
parent
6eca29714a
commit
3e9f4006c4
30 changed files with 52 additions and 58 deletions
|
@ -202,7 +202,7 @@ function search_attachments($order_by, &$total_rows)
|
|||
// Search Attachment Time
|
||||
$search_days_greater = get_var('search_days_greater', '');
|
||||
if ($search_days_greater) {
|
||||
$where_sql[] = ' (a.filetime < ' . (TIME_DAY * (int)$search_days_greater) . ') ';
|
||||
$where_sql[] = ' (a.filetime < ' . (TIMENOW - ((int)$search_days_greater * 86400)) . ') ';
|
||||
}
|
||||
|
||||
// Search Forum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue