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

Reply via email to