Author: Derick Rethans (derickr) Date: 2024-08-01T13:58:41+01:00 Commit: https://github.com/php/web-bugs/commit/61e307d456ac6eb7ddc36d09bb66b034aae981c2 Raw diff: https://github.com/php/web-bugs/commit/61e307d456ac6eb7ddc36d09bb66b034aae981c2.diff
Fixed 'Last Modified' checking correctly Changed paths: M www/search.php Diff: diff --git a/www/search.php b/www/search.php index 91b0488a..66910763 100644 --- a/www/search.php +++ b/www/search.php @@ -162,7 +162,7 @@ echo ' <td align="center">', format_date(strtotime($row['ts1'])), "</td>\n"; // Last Modified - $ts2 = strtotime($row['ts2'] ?? date('Y-m-d H:i:s')); + $ts2 = $row['ts2'] ? strtotime($row['ts2']) : false; echo ' <td align="center">' , ($ts2 ? format_date($ts2) : 'Not modified') , "</td>\n"; // Package