From fd5bde60ec5e029a1e3c9a5b12edf636b03d7574 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 9 Jun 2015 18:47:49 -0700 Subject: [PATCH] Fixed "wfTimestamp() fed bogus time value" errors * This broke OutputPage::checkLastModified() as the touched time was false Change-Id: I118d3ddf07c7b69ad269f3aee0c70ab4159df192 --- includes/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/User.php b/includes/User.php index bf0326a0cd..61313a3964 100644 --- a/includes/User.php +++ b/includes/User.php @@ -2362,7 +2362,7 @@ class User implements IDBAccessObject { $timestamp = $cache->getCheckKeyTime( $key ); if ( $timestamp ) { - $this->mQuickTouched = wfTimestamp( TS_MW, $timestamp ); + $this->mQuickTouched = wfTimestamp( TS_MW, (int)$timestamp ); } else { # Set the timestamp to get HTTP 304 cache hits $this->touch(); -- 2.20.1