[web-bugs] master: Fixed 'Last Modified' checking correctly

From: Date: Thu, 01 Aug 2024 12:59:17 +0000
Subject: [web-bugs] master: Fixed 'Last Modified' checking correctly
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-31900@lists.php.net to get a copy of this message
Author: Derick Rethans (derickr) Date: 2024-08-01T13:59:12+01:00 Commit: https://github.com/php/web-bugs/commit/31edeaf6f53875824bbd310c917b2c80f463e789 Raw diff: https://github.com/php/web-bugs/commit/31edeaf6f53875824bbd310c917b2c80f463e789.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

« previous php.webmaster (#31900) next »