mirror of
https://github.com/php/web-php.git
synced 2026-04-29 18:03:19 +02:00
Initial (pre)support for limiting buglist to a certain number of days old
This commit is contained in:
@@ -505,6 +505,10 @@ if (isset($cmd) && $cmd == "Send bug report") {
|
||||
if(strlen($search_for)) {
|
||||
$where_clause .= " and (sdesc like '%$search_for%' or ldesc like '%$search_for%' or comments like '%$search_for%')";
|
||||
}
|
||||
// not supported by the HTML form yet : use the URL :)
|
||||
if(isset($bug_age) && ($bug_age!="All")) {
|
||||
$where_clause .= " and (TO_DAYS(NOW())-TO_DAYS(ts1))<=$bug_age";
|
||||
}
|
||||
if (strlen($where_clause)) {
|
||||
$where_clause .= " and";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user