From dfe47c9ef9b0de003b1690f8509a44bc287c5576 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 30 Jun 2014 21:51:29 +0200 Subject: [PATCH] Don't use isset() to check for null $wgLocalTZoffset is defined in DefaultSettings.php so it is always set. Change-Id: I86518176b30da4e13f6dbfde8f1c77c8ced58d9f --- includes/MWTimestamp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/MWTimestamp.php b/includes/MWTimestamp.php index 447dde3cb9..ad3228d9a0 100644 --- a/includes/MWTimestamp.php +++ b/includes/MWTimestamp.php @@ -268,7 +268,7 @@ class MWTimestamp { // first value. if ( $data[0] == 'System' ) { // First value is System, so use the system offset. - if ( isset( $wgLocalTZoffset ) ) { + if ( $wgLocalTZoffset !== null ) { $diff = $wgLocalTZoffset; } } elseif ( $data[0] == 'Offset' ) { -- 2.20.1