1
0
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:
Simon Roberts
2000-10-23 02:55:11 +00:00
parent 4deabdbd59
commit d7ca29945e
+4
View File
@@ -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";
}